Class: Sistrix::Domain::Sichtbarkeitsindex::Record

Inherits:
Object
  • Object
show all
Includes:
Record
Defined in:
lib/sistrix/domain/sichtbarkeitsindex.rb

Instance Method Summary collapse

Methods included from Record

#keys, #method_missing

Constructor Details

#initialize(xml_node) ⇒ Record

Returns a new instance of Record.



38
39
40
41
42
43
44
# File 'lib/sistrix/domain/sichtbarkeitsindex.rb', line 38

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_f
end

Dynamic Method Handling

This class handles dynamic methods through the method_missing method in the class Sistrix::Record