Class: RarReference
- Inherits:
-
Object
- Object
- RarReference
- Defined in:
- lib/ruby_arachni/rar_reference.rb
Instance Attribute Summary collapse
-
#title ⇒ Object
Returns the value of attribute title.
-
#url ⇒ Object
Returns the value of attribute url.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(title, url) ⇒ RarReference
constructor
A new instance of RarReference.
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
#title ⇒ Object
Returns the value of attribute title.
2 3 4 |
# File 'lib/ruby_arachni/rar_reference.rb', line 2 def title @title end |
#url ⇒ Object
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 |