class Pohoda::Parsers::Csh::CashRegisterType

Public Instance Methods

action_type() click to toggle source
# File lib/pohoda/parsers/csh/cash_register_type.rb, line 7
def action_type
  at 'csh:actionType'
end
action_type_attributes() click to toggle source
# File lib/pohoda/parsers/csh/cash_register_type.rb, line 11
def action_type_attributes
  attributes_at 'csh:actionType'
end
cash_register_header() click to toggle source
# File lib/pohoda/parsers/csh/cash_register_type.rb, line 15
def cash_register_header
  submodel_at(Csh::CashRegisterHeaderType, 'csh:cashRegisterHeader')
end
to_h() click to toggle source
# File lib/pohoda/parsers/csh/cash_register_type.rb, line 19
def to_h
  hash = {}
  hash[:attributes] = attributes

  hash[:action_type] = action_type if has? 'csh:actionType'
  hash[:action_type_attributes] = action_type_attributes if has? 'csh:actionType'
  hash[:cash_register_header] = cash_register_header.to_h if has? 'csh:cashRegisterHeader'

  hash
end