Method: NextErpBridge::Core::Entry::ClassMethods#create

Defined in:
lib/next_erp_bridge/core/entry.rb

#create(attrs) ⇒ Object



36
37
38
39
40
# File 'lib/next_erp_bridge/core/entry.rb', line 36

def create(attrs)
  before_action
  a = attrs.merge({ doctype: encoded_doctype })
  Util.instance_create(self, client.insert(a), a)
end