class Pohoda::Parsers::Idp::IndividualPriceType

Public Instance Methods

partner_identity() click to toggle source
# File lib/pohoda/parsers/idp/individual_price_type.rb, line 7
def partner_identity
  at 'idp:partnerIdentity'
end
partner_identity_attributes() click to toggle source
# File lib/pohoda/parsers/idp/individual_price_type.rb, line 11
def partner_identity_attributes
  attributes_at 'idp:partnerIdentity'
end
set_prices() click to toggle source
# File lib/pohoda/parsers/idp/individual_price_type.rb, line 15
def set_prices
  submodel_at(Idp::SetPricesType, 'idp:setPrices')
end
to_h() click to toggle source
# File lib/pohoda/parsers/idp/individual_price_type.rb, line 19
def to_h
  hash = {}
  hash[:attributes] = attributes

  hash[:partner_identity] = partner_identity if has? 'idp:partnerIdentity'
  hash[:partner_identity_attributes] = partner_identity_attributes if has? 'idp:partnerIdentity'
  hash[:set_prices] = set_prices.to_h if has? 'idp:setPrices'

  hash
end