class Pohoda::Parsers::Idp::PriceGroupItemType

Public Instance Methods

description() click to toggle source
# File lib/pohoda/parsers/idp/price_group_item_type.rb, line 23
def description
  at 'idp:description'
end
description_attributes() click to toggle source
# File lib/pohoda/parsers/idp/price_group_item_type.rb, line 27
def description_attributes
  attributes_at 'idp:description'
end
discount_percentage() click to toggle source
# File lib/pohoda/parsers/idp/price_group_item_type.rb, line 31
def discount_percentage
  at 'idp:discountPercentage'
end
discount_percentage_attributes() click to toggle source
# File lib/pohoda/parsers/idp/price_group_item_type.rb, line 35
def discount_percentage_attributes
  attributes_at 'idp:discountPercentage'
end
id() click to toggle source
# File lib/pohoda/parsers/idp/price_group_item_type.rb, line 7
def id
  at 'idp:id'
end
id_attributes() click to toggle source
# File lib/pohoda/parsers/idp/price_group_item_type.rb, line 11
def id_attributes
  attributes_at 'idp:id'
end
name() click to toggle source
# File lib/pohoda/parsers/idp/price_group_item_type.rb, line 15
def name
  at 'idp:name'
end
name_attributes() click to toggle source
# File lib/pohoda/parsers/idp/price_group_item_type.rb, line 19
def name_attributes
  attributes_at 'idp:name'
end
to_h() click to toggle source
# File lib/pohoda/parsers/idp/price_group_item_type.rb, line 39
def to_h
  hash = {}
  hash[:attributes] = attributes

  hash[:id] = id if has? 'idp:id'
  hash[:id_attributes] = id_attributes if has? 'idp:id'
  hash[:name] = name if has? 'idp:name'
  hash[:name_attributes] = name_attributes if has? 'idp:name'
  hash[:description] = description if has? 'idp:description'
  hash[:description_attributes] = description_attributes if has? 'idp:description'
  hash[:discount_percentage] = discount_percentage if has? 'idp:discountPercentage'
  hash[:discount_percentage_attributes] = discount_percentage_attributes if has? 'idp:discountPercentage'

  hash
end