class Postmaster::Package
Public Class Methods
create(params={})
click to toggle source
# File lib/postmaster/package.rb, line 6 def self.create(params={}) response = Postmaster.request(:post, self.url, params) response[:id] end
fit(params={})
click to toggle source
# File lib/postmaster/package.rb, line 11 def self.fit(params={}) json_params = Postmaster::JSON.dump(params, :pretty => true) headers = {:content_type => 'application/json'} Postmaster.request(:post, '/v1/packages/fit', json_params, headers) end