class Pohoda::Parsers::Acp::ActionPriceHeaderType

Public Instance Methods

derive_from_accesory_price() click to toggle source
# File lib/pohoda/parsers/acp/action_price_header_type.rb, line 43
def derive_from_accesory_price
  at 'acp:deriveFromAccesoryPrice'
end
derive_from_accesory_price_attributes() click to toggle source
# File lib/pohoda/parsers/acp/action_price_header_type.rb, line 47
def derive_from_accesory_price_attributes
  attributes_at 'acp:deriveFromAccesoryPrice'
end
description() click to toggle source
# File lib/pohoda/parsers/acp/action_price_header_type.rb, line 23
def description
  at 'acp:description'
end
description_attributes() click to toggle source
# File lib/pohoda/parsers/acp/action_price_header_type.rb, line 27
def description_attributes
  attributes_at 'acp:description'
end
discount_percentage() click to toggle source
# File lib/pohoda/parsers/acp/action_price_header_type.rb, line 35
def discount_percentage
  at 'acp:discountPercentage'
end
discount_percentage_attributes() click to toggle source
# File lib/pohoda/parsers/acp/action_price_header_type.rb, line 39
def discount_percentage_attributes
  attributes_at 'acp:discountPercentage'
end
id() click to toggle source
# File lib/pohoda/parsers/acp/action_price_header_type.rb, line 7
def id
  at 'acp:id'
end
id_attributes() click to toggle source
# File lib/pohoda/parsers/acp/action_price_header_type.rb, line 11
def id_attributes
  attributes_at 'acp:id'
end
name() click to toggle source
# File lib/pohoda/parsers/acp/action_price_header_type.rb, line 15
def name
  at 'acp:name'
end
name_attributes() click to toggle source
# File lib/pohoda/parsers/acp/action_price_header_type.rb, line 19
def name_attributes
  attributes_at 'acp:name'
end
note() click to toggle source
# File lib/pohoda/parsers/acp/action_price_header_type.rb, line 59
def note
  at 'acp:note'
end
note_attributes() click to toggle source
# File lib/pohoda/parsers/acp/action_price_header_type.rb, line 63
def note_attributes
  attributes_at 'acp:note'
end
rounding() click to toggle source
# File lib/pohoda/parsers/acp/action_price_header_type.rb, line 51
def rounding
  at 'acp:rounding'
end
rounding_attributes() click to toggle source
# File lib/pohoda/parsers/acp/action_price_header_type.rb, line 55
def rounding_attributes
  attributes_at 'acp:rounding'
end
to_h() click to toggle source
# File lib/pohoda/parsers/acp/action_price_header_type.rb, line 67
def to_h
  hash = {}
  hash[:attributes] = attributes

  hash[:id] = id if has? 'acp:id'
  hash[:id_attributes] = id_attributes if has? 'acp:id'
  hash[:name] = name if has? 'acp:name'
  hash[:name_attributes] = name_attributes if has? 'acp:name'
  hash[:description] = description if has? 'acp:description'
  hash[:description_attributes] = description_attributes if has? 'acp:description'
  hash[:validity_action] = validity_action.to_h if has? 'acp:validityAction'
  hash[:discount_percentage] = discount_percentage if has? 'acp:discountPercentage'
  hash[:discount_percentage_attributes] = discount_percentage_attributes if has? 'acp:discountPercentage'
  hash[:derive_from_accesory_price] = derive_from_accesory_price if has? 'acp:deriveFromAccesoryPrice'
  hash[:derive_from_accesory_price_attributes] = derive_from_accesory_price_attributes if has? 'acp:deriveFromAccesoryPrice'
  hash[:rounding] = rounding if has? 'acp:rounding'
  hash[:rounding_attributes] = rounding_attributes if has? 'acp:rounding'
  hash[:note] = note if has? 'acp:note'
  hash[:note_attributes] = note_attributes if has? 'acp:note'

  hash
end
validity_action() click to toggle source
# File lib/pohoda/parsers/acp/action_price_header_type.rb, line 31
def validity_action
  submodel_at(Acp::ValidityActionType, 'acp:validityAction')
end