class Pohoda::Parsers::Stk::ActionTypeType

Public Instance Methods

add() click to toggle source
# File lib/pohoda/parsers/stk/action_type_type.rb, line 7
def add
  submodel_at(Ftr::RequestStockActionType, 'stk:add')
end
delete() click to toggle source
# File lib/pohoda/parsers/stk/action_type_type.rb, line 15
def delete
  submodel_at(Ftr::RequestStockType, 'stk:delete')
end
to_h() click to toggle source
# File lib/pohoda/parsers/stk/action_type_type.rb, line 19
def to_h
  hash = {}
  hash[:attributes] = attributes

  hash[:add] = add.to_h if has? 'stk:add'
  hash[:update] = update.to_h if has? 'stk:update'
  hash[:delete] = delete.to_h if has? 'stk:delete'

  hash
end
update() click to toggle source
# File lib/pohoda/parsers/stk/action_type_type.rb, line 11
def update
  submodel_at(Ftr::RequestStockActionType, 'stk:update')
end