class Pohoda::Parsers::Ord::ActionTypeType2

Public Instance Methods

add() click to toggle source
# File lib/pohoda/parsers/ord/action_type_type2.rb, line 7
def add
  at 'ord:add'
end
add_attributes() click to toggle source
# File lib/pohoda/parsers/ord/action_type_type2.rb, line 11
def add_attributes
  attributes_at 'ord:add'
end
delete() click to toggle source
# File lib/pohoda/parsers/ord/action_type_type2.rb, line 15
def delete
  submodel_at(Ftr::DeleteOrderType, 'ord:delete')
end
to_h() click to toggle source
# File lib/pohoda/parsers/ord/action_type_type2.rb, line 19
def to_h
  hash = {}
  hash[:attributes] = attributes

  hash[:add] = add if has? 'ord:add'
  hash[:add_attributes] = add_attributes if has? 'ord:add'
  hash[:delete] = delete.to_h if has? 'ord:delete'

  hash
end