Class: RaReference
- Inherits:
-
Object
- Object
- RaReference
- Defined in:
- lib/ruby_acunetix/ra_reference.rb
Instance Attribute Summary collapse
-
#database ⇒ Object
Returns the value of attribute database.
-
#url ⇒ Object
Returns the value of attribute url.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(database, url) ⇒ RaReference
constructor
A new instance of RaReference.
Constructor Details
#initialize(database, url) ⇒ RaReference
Returns a new instance of RaReference.
4 5 6 7 |
# File 'lib/ruby_acunetix/ra_reference.rb', line 4 def initialize(database, url) self.database = database self.url = url end |
Instance Attribute Details
#database ⇒ Object
Returns the value of attribute database.
2 3 4 |
# File 'lib/ruby_acunetix/ra_reference.rb', line 2 def database @database end |
#url ⇒ Object
Returns the value of attribute url.
2 3 4 |
# File 'lib/ruby_acunetix/ra_reference.rb', line 2 def url @url end |
Class Method Details
.parse(reference) ⇒ Object
10 11 12 |
# File 'lib/ruby_acunetix/ra_reference.rb', line 10 def parse(reference) RaReference.new(reference.css('Database').text, reference.css('URL').text) end |