class Pohoda::Parsers::Ftr::FilterStocksType

Public Instance Methods

code() click to toggle source
# File lib/pohoda/parsers/ftr/filter_stocks_type.rb, line 19
def code
  at 'ftr:code'
end
code_attributes() click to toggle source
# File lib/pohoda/parsers/ftr/filter_stocks_type.rb, line 23
def code_attributes
  attributes_at 'ftr:code'
end
ean() click to toggle source
# File lib/pohoda/parsers/ftr/filter_stocks_type.rb, line 27
def ean
  at 'ftr:EAN'
end
ean_attributes() click to toggle source
# File lib/pohoda/parsers/ftr/filter_stocks_type.rb, line 31
def ean_attributes
  attributes_at 'ftr:EAN'
end
ext_id() click to toggle source
# File lib/pohoda/parsers/ftr/filter_stocks_type.rb, line 15
def ext_id
  submodel_at(Typ::ExtIdType, 'ftr:extId')
end
id() click to toggle source
# File lib/pohoda/parsers/ftr/filter_stocks_type.rb, line 7
def id
  at 'ftr:id'
end
id_attributes() click to toggle source
# File lib/pohoda/parsers/ftr/filter_stocks_type.rb, line 11
def id_attributes
  attributes_at 'ftr:id'
end
internet() click to toggle source
# File lib/pohoda/parsers/ftr/filter_stocks_type.rb, line 59
def internet
  at 'ftr:internet'
end
internet_attributes() click to toggle source
# File lib/pohoda/parsers/ftr/filter_stocks_type.rb, line 63
def internet_attributes
  attributes_at 'ftr:internet'
end
last_changes() click to toggle source
# File lib/pohoda/parsers/ftr/filter_stocks_type.rb, line 67
def last_changes
  at 'ftr:lastChanges'
end
last_changes_attributes() click to toggle source
# File lib/pohoda/parsers/ftr/filter_stocks_type.rb, line 71
def last_changes_attributes
  attributes_at 'ftr:lastChanges'
end
name() click to toggle source
# File lib/pohoda/parsers/ftr/filter_stocks_type.rb, line 43
def name
  at 'ftr:name'
end
name_attributes() click to toggle source
# File lib/pohoda/parsers/ftr/filter_stocks_type.rb, line 47
def name_attributes
  attributes_at 'ftr:name'
end
plu() click to toggle source
# File lib/pohoda/parsers/ftr/filter_stocks_type.rb, line 35
def plu
  at 'ftr:PLU'
end
plu_attributes() click to toggle source
# File lib/pohoda/parsers/ftr/filter_stocks_type.rb, line 39
def plu_attributes
  attributes_at 'ftr:PLU'
end
storage() click to toggle source
# File lib/pohoda/parsers/ftr/filter_stocks_type.rb, line 51
def storage
  submodel_at(Typ::RefTypeStorage, 'ftr:storage')
end
store() click to toggle source
# File lib/pohoda/parsers/ftr/filter_stocks_type.rb, line 55
def store
  submodel_at(Typ::RefType, 'ftr:store')
end
to_h() click to toggle source
# File lib/pohoda/parsers/ftr/filter_stocks_type.rb, line 75
def to_h
  hash = {}
  hash[:attributes] = attributes

  hash[:id] = id if has? 'ftr:id'
  hash[:id_attributes] = id_attributes if has? 'ftr:id'
  hash[:ext_id] = ext_id.to_h if has? 'ftr:extId'
  hash[:code] = code if has? 'ftr:code'
  hash[:code_attributes] = code_attributes if has? 'ftr:code'
  hash[:ean] = ean if has? 'ftr:EAN'
  hash[:ean_attributes] = ean_attributes if has? 'ftr:EAN'
  hash[:plu] = plu if has? 'ftr:PLU'
  hash[:plu_attributes] = plu_attributes if has? 'ftr:PLU'
  hash[:name] = name if has? 'ftr:name'
  hash[:name_attributes] = name_attributes if has? 'ftr:name'
  hash[:storage] = storage.to_h if has? 'ftr:storage'
  hash[:store] = store.to_h if has? 'ftr:store'
  hash[:internet] = internet if has? 'ftr:internet'
  hash[:internet_attributes] = internet_attributes if has? 'ftr:internet'
  hash[:last_changes] = last_changes if has? 'ftr:lastChanges'
  hash[:last_changes_attributes] = last_changes_attributes if has? 'ftr:lastChanges'

  hash
end