class Pohoda::Parsers::Sto::PLUtype

Public Instance Methods

lower_limit() click to toggle source
# File lib/pohoda/parsers/sto/pl_utype.rb, line 15
def lower_limit
  at 'sto:lowerLimit'
end
lower_limit_attributes() click to toggle source
# File lib/pohoda/parsers/sto/pl_utype.rb, line 19
def lower_limit_attributes
  attributes_at 'sto:lowerLimit'
end
to_h() click to toggle source
# File lib/pohoda/parsers/sto/pl_utype.rb, line 31
def to_h
  hash = {}
  hash[:attributes] = attributes

  hash[:use_plu] = use_plu if has? 'sto:usePLU'
  hash[:use_plu_attributes] = use_plu_attributes if has? 'sto:usePLU'
  hash[:lower_limit] = lower_limit if has? 'sto:lowerLimit'
  hash[:lower_limit_attributes] = lower_limit_attributes if has? 'sto:lowerLimit'
  hash[:upper_limit] = upper_limit if has? 'sto:upperLimit'
  hash[:upper_limit_attributes] = upper_limit_attributes if has? 'sto:upperLimit'

  hash
end
upper_limit() click to toggle source
# File lib/pohoda/parsers/sto/pl_utype.rb, line 23
def upper_limit
  at 'sto:upperLimit'
end
upper_limit_attributes() click to toggle source
# File lib/pohoda/parsers/sto/pl_utype.rb, line 27
def upper_limit_attributes
  attributes_at 'sto:upperLimit'
end
use_plu() click to toggle source
# File lib/pohoda/parsers/sto/pl_utype.rb, line 7
def use_plu
  at 'sto:usePLU'
end
use_plu_attributes() click to toggle source
# File lib/pohoda/parsers/sto/pl_utype.rb, line 11
def use_plu_attributes
  attributes_at 'sto:usePLU'
end