lib/acumatica/stock_item.rb in acumatica-0.1.3 vs lib/acumatica/stock_item.rb in acumatica-0.2.0
- old
+ new
@@ -1,6 +1,13 @@
module Acumatica
class StockItem < OpenStruct
+ def self.create(params)
+ Acumatica::Client.instance.connection.put do |req|
+ req.url url
+ req.body = params
+ end
+ end
+
def self.find_all(select: nil, filter: nil, expand: nil, offset: nil, limit: nil)
params = {}
params['$select'] = select if select
params['$filter'] = filter if filter