class Pohoda::Parsers::Ofr::OfferItemType
Public Instance Methods
activity()
click to toggle source
# File lib/pohoda/parsers/ofr/offer_item_type.rb, line 111 def activity submodel_at(Typ::RefType, 'ofr:activity') end
centre()
click to toggle source
# File lib/pohoda/parsers/ofr/offer_item_type.rb, line 107 def centre submodel_at(Typ::RefType, 'ofr:centre') end
code()
click to toggle source
# File lib/pohoda/parsers/ofr/offer_item_type.rb, line 127 def code at 'ofr:code' end
code_attributes()
click to toggle source
# File lib/pohoda/parsers/ofr/offer_item_type.rb, line 131 def code_attributes attributes_at 'ofr:code' end
code_pdp()
click to toggle source
# File lib/pohoda/parsers/ofr/offer_item_type.rb, line 99 def code_pdp at 'ofr:CodePDP' end
code_pdp_attributes()
click to toggle source
# File lib/pohoda/parsers/ofr/offer_item_type.rb, line 103 def code_pdp_attributes attributes_at 'ofr:CodePDP' end
coefficient()
click to toggle source
# File lib/pohoda/parsers/ofr/offer_item_type.rb, line 39 def coefficient at 'ofr:coefficient' end
coefficient_attributes()
click to toggle source
# File lib/pohoda/parsers/ofr/offer_item_type.rb, line 43 def coefficient_attributes attributes_at 'ofr:coefficient' end
contract()
click to toggle source
# File lib/pohoda/parsers/ofr/offer_item_type.rb, line 115 def contract submodel_at(Typ::RefType, 'ofr:contract') end
discount_percentage()
click to toggle source
# File lib/pohoda/parsers/ofr/offer_item_type.rb, line 71 def discount_percentage at 'ofr:discountPercentage' end
discount_percentage_attributes()
click to toggle source
# File lib/pohoda/parsers/ofr/offer_item_type.rb, line 75 def discount_percentage_attributes attributes_at 'ofr:discountPercentage' end
eet_item()
click to toggle source
# File lib/pohoda/parsers/ofr/offer_item_type.rb, line 139 def eet_item at 'ofr:EETItem' end
eet_item_attributes()
click to toggle source
# File lib/pohoda/parsers/ofr/offer_item_type.rb, line 143 def eet_item_attributes attributes_at 'ofr:EETItem' end
foreign_currency()
click to toggle source
# File lib/pohoda/parsers/ofr/offer_item_type.rb, line 83 def foreign_currency submodel_at(Typ::TypeCurrencyForeignItem, 'ofr:foreignCurrency') end
home_currency()
click to toggle source
# File lib/pohoda/parsers/ofr/offer_item_type.rb, line 79 def home_currency submodel_at(Typ::TypeCurrencyHomeItem, 'ofr:homeCurrency') end
id()
click to toggle source
# File lib/pohoda/parsers/ofr/offer_item_type.rb, line 7 def id at 'ofr:id' end
id_attributes()
click to toggle source
# File lib/pohoda/parsers/ofr/offer_item_type.rb, line 11 def id_attributes attributes_at 'ofr:id' end
note()
click to toggle source
# File lib/pohoda/parsers/ofr/offer_item_type.rb, line 119 def note at 'ofr:note' end
note_attributes()
click to toggle source
# File lib/pohoda/parsers/ofr/offer_item_type.rb, line 123 def note_attributes attributes_at 'ofr:note' end
parameters()
click to toggle source
# File lib/pohoda/parsers/ofr/offer_item_type.rb, line 147 def parameters array_of_at(Typ::ParameterDocType, ['ofr:parameters', 'typ:parameter']) end
pay_vat()
click to toggle source
# File lib/pohoda/parsers/ofr/offer_item_type.rb, line 47 def pay_vat at 'ofr:payVAT' end
pay_vat_attributes()
click to toggle source
# File lib/pohoda/parsers/ofr/offer_item_type.rb, line 51 def pay_vat_attributes attributes_at 'ofr:payVAT' end
pdp()
click to toggle source
# File lib/pohoda/parsers/ofr/offer_item_type.rb, line 91 def pdp at 'ofr:PDP' end
pdp_attributes()
click to toggle source
# File lib/pohoda/parsers/ofr/offer_item_type.rb, line 95 def pdp_attributes attributes_at 'ofr:PDP' end
percent_vat()
click to toggle source
# File lib/pohoda/parsers/ofr/offer_item_type.rb, line 63 def percent_vat at 'ofr:percentVAT' end
percent_vat_attributes()
click to toggle source
# File lib/pohoda/parsers/ofr/offer_item_type.rb, line 67 def percent_vat_attributes attributes_at 'ofr:percentVAT' end
quantity()
click to toggle source
# File lib/pohoda/parsers/ofr/offer_item_type.rb, line 23 def quantity at 'ofr:quantity' end
quantity_attributes()
click to toggle source
# File lib/pohoda/parsers/ofr/offer_item_type.rb, line 27 def quantity_attributes attributes_at 'ofr:quantity' end
rate_vat()
click to toggle source
# File lib/pohoda/parsers/ofr/offer_item_type.rb, line 55 def rate_vat at 'ofr:rateVAT' end
rate_vat_attributes()
click to toggle source
# File lib/pohoda/parsers/ofr/offer_item_type.rb, line 59 def rate_vat_attributes attributes_at 'ofr:rateVAT' end
stock_item()
click to toggle source
# File lib/pohoda/parsers/ofr/offer_item_type.rb, line 135 def stock_item submodel_at(Typ::StockItemType, 'ofr:stockItem') end
text()
click to toggle source
# File lib/pohoda/parsers/ofr/offer_item_type.rb, line 15 def text at 'ofr:text' end
text_attributes()
click to toggle source
# File lib/pohoda/parsers/ofr/offer_item_type.rb, line 19 def text_attributes attributes_at 'ofr:text' end
to_h()
click to toggle source
# File lib/pohoda/parsers/ofr/offer_item_type.rb, line 151 def to_h hash = {} hash[:attributes] = attributes hash[:id] = id if has? 'ofr:id' hash[:id_attributes] = id_attributes if has? 'ofr:id' hash[:text] = text if has? 'ofr:text' hash[:text_attributes] = text_attributes if has? 'ofr:text' hash[:quantity] = quantity if has? 'ofr:quantity' hash[:quantity_attributes] = quantity_attributes if has? 'ofr:quantity' hash[:unit] = unit if has? 'ofr:unit' hash[:unit_attributes] = unit_attributes if has? 'ofr:unit' hash[:coefficient] = coefficient if has? 'ofr:coefficient' hash[:coefficient_attributes] = coefficient_attributes if has? 'ofr:coefficient' hash[:pay_vat] = pay_vat if has? 'ofr:payVAT' hash[:pay_vat_attributes] = pay_vat_attributes if has? 'ofr:payVAT' hash[:rate_vat] = rate_vat if has? 'ofr:rateVAT' hash[:rate_vat_attributes] = rate_vat_attributes if has? 'ofr:rateVAT' hash[:percent_vat] = percent_vat if has? 'ofr:percentVAT' hash[:percent_vat_attributes] = percent_vat_attributes if has? 'ofr:percentVAT' hash[:discount_percentage] = discount_percentage if has? 'ofr:discountPercentage' hash[:discount_percentage_attributes] = discount_percentage_attributes if has? 'ofr:discountPercentage' hash[:home_currency] = home_currency.to_h if has? 'ofr:homeCurrency' hash[:foreign_currency] = foreign_currency.to_h if has? 'ofr:foreignCurrency' hash[:type_service_moss] = type_service_moss.to_h if has? 'ofr:typeServiceMOSS' hash[:pdp] = pdp if has? 'ofr:PDP' hash[:pdp_attributes] = pdp_attributes if has? 'ofr:PDP' hash[:code_pdp] = code_pdp if has? 'ofr:CodePDP' hash[:code_pdp_attributes] = code_pdp_attributes if has? 'ofr:CodePDP' hash[:centre] = centre.to_h if has? 'ofr:centre' hash[:activity] = activity.to_h if has? 'ofr:activity' hash[:contract] = contract.to_h if has? 'ofr:contract' hash[:note] = note if has? 'ofr:note' hash[:note_attributes] = note_attributes if has? 'ofr:note' hash[:code] = code if has? 'ofr:code' hash[:code_attributes] = code_attributes if has? 'ofr:code' hash[:stock_item] = stock_item.to_h if has? 'ofr:stockItem' hash[:eet_item] = eet_item if has? 'ofr:EETItem' hash[:eet_item_attributes] = eet_item_attributes if has? 'ofr:EETItem' hash[:parameters] = parameters.map(&:to_h) if has? 'ofr:parameters' hash end
type_service_moss()
click to toggle source
# File lib/pohoda/parsers/ofr/offer_item_type.rb, line 87 def type_service_moss submodel_at(Typ::MOSStype, 'ofr:typeServiceMOSS') end
unit()
click to toggle source
# File lib/pohoda/parsers/ofr/offer_item_type.rb, line 31 def unit at 'ofr:unit' end
unit_attributes()
click to toggle source
# File lib/pohoda/parsers/ofr/offer_item_type.rb, line 35 def unit_attributes attributes_at 'ofr:unit' end