class Pohoda::Parsers::Grs::ActionTypeType6

Public Instance Methods

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

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

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