Class: RarReference

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

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(title, url) ⇒ RarReference

Returns a new instance of RarReference.



4
5
6
7
# File 'lib/ruby_arachni/rar_reference.rb', line 4

def initialize(title, url)
  self.title = title
  self.url = url
end

Instance Attribute Details

#titleObject

Returns the value of attribute title.



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

def title
  @title
end

#urlObject

Returns the value of attribute url.



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

def url
  @url
end

Class Method Details

.parse(reference) ⇒ Object



10
11
12
# File 'lib/ruby_arachni/rar_reference.rb', line 10

def parse(reference)
  RarReference.new(reference.attribute('title').value, reference.attribute('url').value)
end