Class: RaReference

Inherits:
Object
  • Object
show all
Defined in:
lib/ruby_acunetix/ra_reference.rb

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

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

#databaseObject

Returns the value of attribute database.



2
3
4
# File 'lib/ruby_acunetix/ra_reference.rb', line 2

def database
  @database
end

#urlObject

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