Class: Sistrix::Domain::Social::Url::Record
- Inherits:
-
Object
- Object
- Sistrix::Domain::Social::Url::Record
- Includes:
- Record
- Defined in:
- lib/sistrix/domain/social/url.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.
49 50 51 52 53 54 55 56 57 |
# File 'lib/sistrix/domain/social/url.rb', line 49 def initialize(xml_node) @data = {} @data[:date] = Time.parse(xml_node['date'].strip) @data[:total] = xml_node['total'].strip.to_i @data[:facebook] = xml_node['facebook'].strip.to_i @data[:twitter] = xml_node['twitter'].strip.to_i @data[:googleplus] = xml_node['googleplus'].strip.to_i end |
Dynamic Method Handling
This class handles dynamic methods through the method_missing method in the class Sistrix::Record