Class: Sistrix::Domain::Pagerank::Record
- Inherits:
-
Object
- Object
- Sistrix::Domain::Pagerank::Record
- Includes:
- Record
- Defined in:
- lib/sistrix/domain/pagerank.rb
Instance Method Summary collapse
-
#initialize(xml_node) ⇒ Record
constructor
A new instance of Record.
Methods included from Record
Constructor Details
#initialize(xml_node) ⇒ Record
Returns a new instance of Record.
39 40 41 42 43 44 45 |
# File 'lib/sistrix/domain/pagerank.rb', line 39 def initialize(xml_node) @data = {} @data[:domain] = xml_node['domain'].strip @data[:date] = Time.parse(xml_node['date'].strip) @data[:value] = xml_node['value'].strip.to_i end |
Dynamic Method Handling
This class handles dynamic methods through the method_missing method in the class Sistrix::Record