Class: Sistrix::Domain::Social::Top::Record
- Inherits:
-
Object
- Object
- Sistrix::Domain::Social::Top::Record
- Includes:
- Record
- Defined in:
- lib/sistrix/domain/social/top.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.
40 41 42 43 44 45 46 |
# File 'lib/sistrix/domain/social/top.rb', line 40 def initialize(xml_node) @data = {} @data[:network] = xml_node['network'].strip @data[:url] = xml_node['url'].strip @data[:votes] = xml_node['votes'].strip.to_i end |
Dynamic Method Handling
This class handles dynamic methods through the method_missing method in the class Sistrix::Record