Class: Sistrix::Keyword::Us::Record
- Inherits:
-
Object
- Object
- Sistrix::Keyword::Us::Record
- Includes:
- Record
- Defined in:
- lib/sistrix/keyword/us.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.
41 42 43 44 45 46 47 48 |
# File 'lib/sistrix/keyword/us.rb', line 41 def initialize(xml_node) @data = {} @data[:position] = xml_node['position'].strip.to_i @data[:position_intern] = xml_node['position.intern'].strip.to_s @data[:url] = xml_node['url'].to_s.strip @data[:type] = xml_node['type'].to_s.strip end |
Dynamic Method Handling
This class handles dynamic methods through the method_missing method in the class Sistrix::Record