class Pohoda::Parsers::Typ::TypeCurrencyHomeItem2

Public Instance Methods

price() click to toggle source
# File lib/pohoda/parsers/typ/type_currency_home_item2.rb, line 15
def price
  at 'typ:price'
end
price_attributes() click to toggle source
# File lib/pohoda/parsers/typ/type_currency_home_item2.rb, line 19
def price_attributes
  attributes_at 'typ:price'
end
price_sum() click to toggle source
# File lib/pohoda/parsers/typ/type_currency_home_item2.rb, line 31
def price_sum
  at 'typ:priceSum'
end
price_sum_attributes() click to toggle source
# File lib/pohoda/parsers/typ/type_currency_home_item2.rb, line 35
def price_sum_attributes
  attributes_at 'typ:priceSum'
end
price_vat() click to toggle source
# File lib/pohoda/parsers/typ/type_currency_home_item2.rb, line 23
def price_vat
  at 'typ:priceVAT'
end
price_vat_attributes() click to toggle source
# File lib/pohoda/parsers/typ/type_currency_home_item2.rb, line 27
def price_vat_attributes
  attributes_at 'typ:priceVAT'
end
to_h() click to toggle source
# File lib/pohoda/parsers/typ/type_currency_home_item2.rb, line 39
def to_h
  hash = {}
  hash[:attributes] = attributes

  hash[:unit_price] = unit_price if has? 'typ:unitPrice'
  hash[:unit_price_attributes] = unit_price_attributes if has? 'typ:unitPrice'
  hash[:price] = price if has? 'typ:price'
  hash[:price_attributes] = price_attributes if has? 'typ:price'
  hash[:price_vat] = price_vat if has? 'typ:priceVAT'
  hash[:price_vat_attributes] = price_vat_attributes if has? 'typ:priceVAT'
  hash[:price_sum] = price_sum if has? 'typ:priceSum'
  hash[:price_sum_attributes] = price_sum_attributes if has? 'typ:priceSum'

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