class Pohoda::Parsers::Vyd::VydejkaItemType

Public Instance Methods

acc() click to toggle source
# File lib/pohoda/parsers/vyd/vydejka_item_type.rb, line 135
def acc
  at 'vyd:acc'
end
acc_attributes() click to toggle source
# File lib/pohoda/parsers/vyd/vydejka_item_type.rb, line 139
def acc_attributes
  attributes_at 'vyd:acc'
end
activity() click to toggle source
# File lib/pohoda/parsers/vyd/vydejka_item_type.rb, line 163
def activity
  submodel_at(Typ::RefType, 'vyd:activity')
end
centre() click to toggle source
# File lib/pohoda/parsers/vyd/vydejka_item_type.rb, line 159
def centre
  submodel_at(Typ::RefType, 'vyd:centre')
end
code() click to toggle source
# File lib/pohoda/parsers/vyd/vydejka_item_type.rb, line 103
def code
  at 'vyd:code'
end
code_attributes() click to toggle source
# File lib/pohoda/parsers/vyd/vydejka_item_type.rb, line 107
def code_attributes
  attributes_at 'vyd:code'
end
code_pdp() click to toggle source
# File lib/pohoda/parsers/vyd/vydejka_item_type.rb, line 151
def code_pdp
  at 'vyd:CodePDP'
end
code_pdp_attributes() click to toggle source
# File lib/pohoda/parsers/vyd/vydejka_item_type.rb, line 155
def code_pdp_attributes
  attributes_at 'vyd:CodePDP'
end
coefficient() click to toggle source
# File lib/pohoda/parsers/vyd/vydejka_item_type.rb, line 43
def coefficient
  at 'vyd:coefficient'
end
coefficient_attributes() click to toggle source
# File lib/pohoda/parsers/vyd/vydejka_item_type.rb, line 47
def coefficient_attributes
  attributes_at 'vyd:coefficient'
end
contract() click to toggle source
# File lib/pohoda/parsers/vyd/vydejka_item_type.rb, line 167
def contract
  submodel_at(Typ::RefType, 'vyd:contract')
end
discount_percentage() click to toggle source
# File lib/pohoda/parsers/vyd/vydejka_item_type.rb, line 75
def discount_percentage
  at 'vyd:discountPercentage'
end
discount_percentage_attributes() click to toggle source
# File lib/pohoda/parsers/vyd/vydejka_item_type.rb, line 79
def discount_percentage_attributes
  attributes_at 'vyd:discountPercentage'
end
expiration_date() click to toggle source
# File lib/pohoda/parsers/vyd/vydejka_item_type.rb, line 171
def expiration_date
  at 'vyd:expirationDate'
end
expiration_date_attributes() click to toggle source
# File lib/pohoda/parsers/vyd/vydejka_item_type.rb, line 175
def expiration_date_attributes
  attributes_at 'vyd:expirationDate'
end
foreign_currency() click to toggle source
# File lib/pohoda/parsers/vyd/vydejka_item_type.rb, line 87
def foreign_currency
  submodel_at(Typ::TypeCurrencyForeignItem, 'vyd:foreignCurrency')
end
guarantee() click to toggle source
# File lib/pohoda/parsers/vyd/vydejka_item_type.rb, line 111
def guarantee
  at 'vyd:guarantee'
end
guarantee_attributes() click to toggle source
# File lib/pohoda/parsers/vyd/vydejka_item_type.rb, line 115
def guarantee_attributes
  attributes_at 'vyd:guarantee'
end
guarantee_type() click to toggle source
# File lib/pohoda/parsers/vyd/vydejka_item_type.rb, line 119
def guarantee_type
  at 'vyd:guaranteeType'
end
guarantee_type_attributes() click to toggle source
# File lib/pohoda/parsers/vyd/vydejka_item_type.rb, line 123
def guarantee_type_attributes
  attributes_at 'vyd:guaranteeType'
end
home_currency() click to toggle source
# File lib/pohoda/parsers/vyd/vydejka_item_type.rb, line 83
def home_currency
  submodel_at(Typ::TypeCurrencyHomeItem, 'vyd:homeCurrency')
end
id() click to toggle source
# File lib/pohoda/parsers/vyd/vydejka_item_type.rb, line 11
def id
  at 'vyd:id'
end
id_attributes() click to toggle source
# File lib/pohoda/parsers/vyd/vydejka_item_type.rb, line 15
def id_attributes
  attributes_at 'vyd:id'
end
note() click to toggle source
# File lib/pohoda/parsers/vyd/vydejka_item_type.rb, line 95
def note
  at 'vyd:note'
end
note_attributes() click to toggle source
# File lib/pohoda/parsers/vyd/vydejka_item_type.rb, line 99
def note_attributes
  attributes_at 'vyd:note'
end
parameters() click to toggle source
# File lib/pohoda/parsers/vyd/vydejka_item_type.rb, line 179
def parameters
  array_of_at(Typ::ParameterDocType, ['vyd:parameters', 'typ:parameter'])
end
pay_vat() click to toggle source
# File lib/pohoda/parsers/vyd/vydejka_item_type.rb, line 51
def pay_vat
  at 'vyd:payVAT'
end
pay_vat_attributes() click to toggle source
# File lib/pohoda/parsers/vyd/vydejka_item_type.rb, line 55
def pay_vat_attributes
  attributes_at 'vyd:payVAT'
end
pdp() click to toggle source
# File lib/pohoda/parsers/vyd/vydejka_item_type.rb, line 143
def pdp
  at 'vyd:PDP'
end
pdp_attributes() click to toggle source
# File lib/pohoda/parsers/vyd/vydejka_item_type.rb, line 147
def pdp_attributes
  attributes_at 'vyd:PDP'
end
percent_vat() click to toggle source
# File lib/pohoda/parsers/vyd/vydejka_item_type.rb, line 67
def percent_vat
  at 'vyd:percentVAT'
end
percent_vat_attributes() click to toggle source
# File lib/pohoda/parsers/vyd/vydejka_item_type.rb, line 71
def percent_vat_attributes
  attributes_at 'vyd:percentVAT'
end
quantity() click to toggle source
# File lib/pohoda/parsers/vyd/vydejka_item_type.rb, line 27
def quantity
  at 'vyd:quantity'
end
quantity_attributes() click to toggle source
# File lib/pohoda/parsers/vyd/vydejka_item_type.rb, line 31
def quantity_attributes
  attributes_at 'vyd:quantity'
end
rate_vat() click to toggle source
# File lib/pohoda/parsers/vyd/vydejka_item_type.rb, line 59
def rate_vat
  at 'vyd:rateVAT'
end
rate_vat_attributes() click to toggle source
# File lib/pohoda/parsers/vyd/vydejka_item_type.rb, line 63
def rate_vat_attributes
  attributes_at 'vyd:rateVAT'
end
stock_item() click to toggle source
# File lib/pohoda/parsers/vyd/vydejka_item_type.rb, line 127
def stock_item
  submodel_at(Typ::StockItemType, 'vyd:stockItem')
end
text() click to toggle source
# File lib/pohoda/parsers/vyd/vydejka_item_type.rb, line 19
def text
  at 'vyd:text'
end
text_attributes() click to toggle source
# File lib/pohoda/parsers/vyd/vydejka_item_type.rb, line 23
def text_attributes
  attributes_at 'vyd:text'
end
to_h() click to toggle source
# File lib/pohoda/parsers/vyd/vydejka_item_type.rb, line 183
def to_h
  hash = {}
  hash[:attributes] = attributes

  hash[:link] = link.to_h if has? 'vyd:link'
  hash[:id] = id if has? 'vyd:id'
  hash[:id_attributes] = id_attributes if has? 'vyd:id'
  hash[:text] = text if has? 'vyd:text'
  hash[:text_attributes] = text_attributes if has? 'vyd:text'
  hash[:quantity] = quantity if has? 'vyd:quantity'
  hash[:quantity_attributes] = quantity_attributes if has? 'vyd:quantity'
  hash[:unit] = unit if has? 'vyd:unit'
  hash[:unit_attributes] = unit_attributes if has? 'vyd:unit'
  hash[:coefficient] = coefficient if has? 'vyd:coefficient'
  hash[:coefficient_attributes] = coefficient_attributes if has? 'vyd:coefficient'
  hash[:pay_vat] = pay_vat if has? 'vyd:payVAT'
  hash[:pay_vat_attributes] = pay_vat_attributes if has? 'vyd:payVAT'
  hash[:rate_vat] = rate_vat if has? 'vyd:rateVAT'
  hash[:rate_vat_attributes] = rate_vat_attributes if has? 'vyd:rateVAT'
  hash[:percent_vat] = percent_vat if has? 'vyd:percentVAT'
  hash[:percent_vat_attributes] = percent_vat_attributes if has? 'vyd:percentVAT'
  hash[:discount_percentage] = discount_percentage if has? 'vyd:discountPercentage'
  hash[:discount_percentage_attributes] = discount_percentage_attributes if has? 'vyd:discountPercentage'
  hash[:home_currency] = home_currency.to_h if has? 'vyd:homeCurrency'
  hash[:foreign_currency] = foreign_currency.to_h if has? 'vyd:foreignCurrency'
  hash[:type_service_moss] = type_service_moss.to_h if has? 'vyd:typeServiceMOSS'
  hash[:note] = note if has? 'vyd:note'
  hash[:note_attributes] = note_attributes if has? 'vyd:note'
  hash[:code] = code if has? 'vyd:code'
  hash[:code_attributes] = code_attributes if has? 'vyd:code'
  hash[:guarantee] = guarantee if has? 'vyd:guarantee'
  hash[:guarantee_attributes] = guarantee_attributes if has? 'vyd:guarantee'
  hash[:guarantee_type] = guarantee_type if has? 'vyd:guaranteeType'
  hash[:guarantee_type_attributes] = guarantee_type_attributes if has? 'vyd:guaranteeType'
  hash[:stock_item] = stock_item.to_h if has? 'vyd:stockItem'
  hash[:link_to_stock] = link_to_stock.to_h if has? 'vyd:linkToStock'
  hash[:acc] = acc if has? 'vyd:acc'
  hash[:acc_attributes] = acc_attributes if has? 'vyd:acc'
  hash[:pdp] = pdp if has? 'vyd:PDP'
  hash[:pdp_attributes] = pdp_attributes if has? 'vyd:PDP'
  hash[:code_pdp] = code_pdp if has? 'vyd:CodePDP'
  hash[:code_pdp_attributes] = code_pdp_attributes if has? 'vyd:CodePDP'
  hash[:centre] = centre.to_h if has? 'vyd:centre'
  hash[:activity] = activity.to_h if has? 'vyd:activity'
  hash[:contract] = contract.to_h if has? 'vyd:contract'
  hash[:expiration_date] = expiration_date if has? 'vyd:expirationDate'
  hash[:expiration_date_attributes] = expiration_date_attributes if has? 'vyd:expirationDate'
  hash[:parameters] = parameters.map(&:to_h) if has? 'vyd:parameters'

  hash
end
type_service_moss() click to toggle source
# File lib/pohoda/parsers/vyd/vydejka_item_type.rb, line 91
def type_service_moss
  submodel_at(Typ::MOSStype, 'vyd:typeServiceMOSS')
end
unit() click to toggle source
# File lib/pohoda/parsers/vyd/vydejka_item_type.rb, line 35
def unit
  at 'vyd:unit'
end
unit_attributes() click to toggle source
# File lib/pohoda/parsers/vyd/vydejka_item_type.rb, line 39
def unit_attributes
  attributes_at 'vyd:unit'
end