Class: RarVector

Inherits:
Object
  • Object
show all
Defined in:
lib/ruby_arachni/rar_vector.rb

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(klass, type, url, action) ⇒ RarVector

Returns a new instance of RarVector.



4
5
6
7
8
9
# File 'lib/ruby_arachni/rar_vector.rb', line 4

def initialize(klass, type, url, action)
  self.klass = klass
  self.type = type
  self.url = url
  self.action = action
end

Instance Attribute Details

#actionObject

Returns the value of attribute action.



2
3
4
# File 'lib/ruby_arachni/rar_vector.rb', line 2

def action
  @action
end

#klassObject

Returns the value of attribute klass.



2
3
4
# File 'lib/ruby_arachni/rar_vector.rb', line 2

def klass
  @klass
end

#typeObject

Returns the value of attribute type.



2
3
4
# File 'lib/ruby_arachni/rar_vector.rb', line 2

def type
  @type
end

#urlObject

Returns the value of attribute url.



2
3
4
# File 'lib/ruby_arachni/rar_vector.rb', line 2

def url
  @url
end

Class Method Details

.parse(vector) ⇒ Object



12
13
14
# File 'lib/ruby_arachni/rar_vector.rb', line 12

def parse(vector)
  RarVector.new(vector.css('class').text, vector.css('type').text, vector.css('url').text, vector.css('action').text)
end