Class: SevenBankFxRate::Data

Inherits:
Object
  • Object
show all
Defined in:
lib/seven_bank_fx_rate/seven_bank_fx_rate.rb

Overview

Holds the parsed exchange rate data represented by ruby objects converted from original xml content

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeData

Returns a new instance of Data.



77
78
79
80
81
# File 'lib/seven_bank_fx_rate/seven_bank_fx_rate.rb', line 77

def initialize
  parser = Parser.new Agent.response
  @meta = parser.meta
  @countries = parser.countries
end

Instance Attribute Details

#countriesObject (readonly)

Returns the value of attribute countries.



75
76
77
# File 'lib/seven_bank_fx_rate/seven_bank_fx_rate.rb', line 75

def countries
  @countries
end

#metaObject (readonly)

Returns the value of attribute meta.



75
76
77
# File 'lib/seven_bank_fx_rate/seven_bank_fx_rate.rb', line 75

def meta
  @meta
end