class Pohoda::Parsers::Ofr::OfferSummaryType

Public Instance Methods

foreign_currency() click to toggle source
# File lib/pohoda/parsers/ofr/offer_summary_type.rb, line 35
def foreign_currency
  submodel_at(Typ::TypeCurrencyForeign, 'ofr:foreignCurrency')
end
home_currency() click to toggle source
# File lib/pohoda/parsers/ofr/offer_summary_type.rb, line 31
def home_currency
  submodel_at(Typ::TypeCurrencyHome, 'ofr:homeCurrency')
end
rounding_document() click to toggle source
# File lib/pohoda/parsers/ofr/offer_summary_type.rb, line 7
def rounding_document
  at 'ofr:roundingDocument'
end
rounding_document_attributes() click to toggle source
# File lib/pohoda/parsers/ofr/offer_summary_type.rb, line 11
def rounding_document_attributes
  attributes_at 'ofr:roundingDocument'
end
rounding_vat() click to toggle source
# File lib/pohoda/parsers/ofr/offer_summary_type.rb, line 15
def rounding_vat
  at 'ofr:roundingVAT'
end
rounding_vat_attributes() click to toggle source
# File lib/pohoda/parsers/ofr/offer_summary_type.rb, line 19
def rounding_vat_attributes
  attributes_at 'ofr:roundingVAT'
end
to_h() click to toggle source
# File lib/pohoda/parsers/ofr/offer_summary_type.rb, line 39
def to_h
  hash = {}
  hash[:attributes] = attributes

  hash[:rounding_document] = rounding_document if has? 'ofr:roundingDocument'
  hash[:rounding_document_attributes] = rounding_document_attributes if has? 'ofr:roundingDocument'
  hash[:rounding_vat] = rounding_vat if has? 'ofr:roundingVAT'
  hash[:rounding_vat_attributes] = rounding_vat_attributes if has? 'ofr:roundingVAT'
  hash[:type_calculate_vat_inclusive_price] = type_calculate_vat_inclusive_price if has? 'ofr:typeCalculateVATInclusivePrice'
  hash[:type_calculate_vat_inclusive_price_attributes] = type_calculate_vat_inclusive_price_attributes if has? 'ofr:typeCalculateVATInclusivePrice'
  hash[:home_currency] = home_currency.to_h if has? 'ofr:homeCurrency'
  hash[:foreign_currency] = foreign_currency.to_h if has? 'ofr:foreignCurrency'

  hash
end
type_calculate_vat_inclusive_price() click to toggle source
# File lib/pohoda/parsers/ofr/offer_summary_type.rb, line 23
def type_calculate_vat_inclusive_price
  at 'ofr:typeCalculateVATInclusivePrice'
end
type_calculate_vat_inclusive_price_attributes() click to toggle source
# File lib/pohoda/parsers/ofr/offer_summary_type.rb, line 27
def type_calculate_vat_inclusive_price_attributes
  attributes_at 'ofr:typeCalculateVATInclusivePrice'
end