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