class Pohoda::Parsers::Bnk::TypeCurrencyForeignItem2

Public Instance Methods

to_h() click to toggle source
# File lib/pohoda/parsers/bnk/type_currency_foreign_item2.rb, line 15
def to_h
  hash = {}
  hash[:attributes] = attributes

  hash[:unit_price] = unit_price if has? 'bnk:unitPrice'
  hash[:unit_price_attributes] = unit_price_attributes if has? 'bnk:unitPrice'

  hash
end
unit_price() click to toggle source
# File lib/pohoda/parsers/bnk/type_currency_foreign_item2.rb, line 7
def unit_price
  at 'bnk:unitPrice'
end
unit_price_attributes() click to toggle source
# File lib/pohoda/parsers/bnk/type_currency_foreign_item2.rb, line 11
def unit_price_attributes
  attributes_at 'bnk:unitPrice'
end