class RarCheck
Attributes
description[RW]
name[RW]
shortname[RW]
version[RW]
Public Class Methods
new(fields)
click to toggle source
# File lib/ruby_arachni/rar_check.rb, line 4 def initialize(fields) self.name = fields['name'] self.description = fields['description'] self.author = fields['author'] self.version = fields['version'] self.shortname = fields['shortname'] end
parse(check)
click to toggle source
# File lib/ruby_arachni/rar_check.rb, line 13 def parse(check) fields = {} fields['name'] = check.css('name').text fields['description'] = check.css('description').text fields['author'] = check.css('author').text fields['version'] = check.css('version').text fields['shortname'] = check.css('shortname').text RarCheck.new(fields) end