class MoneyS3::Parsers::Valuty2

Public Instance Methods

celkem() click to toggle source
# File lib/money_s3/parsers/valuty2.rb, line 14
def celkem
  at 'Celkem'
end
celkem_attributes() click to toggle source
# File lib/money_s3/parsers/valuty2.rb, line 18
def celkem_attributes
  attributes_at 'Celkem'
end
mena() click to toggle source
# File lib/money_s3/parsers/valuty2.rb, line 6
def mena
  submodel_at(MenaType, 'Mena')
end
souhrn_dph() click to toggle source
# File lib/money_s3/parsers/valuty2.rb, line 10
def souhrn_dph
  submodel_at(SouhrnDPHType, 'SouhrnDPH')
end
to_h() click to toggle source
# File lib/money_s3/parsers/valuty2.rb, line 22
def to_h
  hash = {}
  hash[:attributes] = attributes

  hash[:mena] = mena.to_h if has? 'Mena'
  hash[:souhrn_dph] = souhrn_dph.to_h if has? 'SouhrnDPH'
  hash[:celkem] = celkem if has? 'Celkem'
  hash[:celkem_attributes] = celkem_attributes if has? 'Celkem'

  hash
end