class Pohoda::Parsers::Typ::PriceType

Public Instance Methods

price() click to toggle source
# File lib/pohoda/parsers/typ/price_type.rb, line 7
def price
  at 'typ:price'
end
price_attributes() click to toggle source
# File lib/pohoda/parsers/typ/price_type.rb, line 11
def price_attributes
  attributes_at 'typ:price'
end
price_vat() click to toggle source
# File lib/pohoda/parsers/typ/price_type.rb, line 15
def price_vat
  at 'typ:priceVAT'
end
price_vat_attributes() click to toggle source
# File lib/pohoda/parsers/typ/price_type.rb, line 19
def price_vat_attributes
  attributes_at 'typ:priceVAT'
end
to_h() click to toggle source
# File lib/pohoda/parsers/typ/price_type.rb, line 23
def to_h
  hash = {}
  hash[:attributes] = attributes

  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
end