Sha256: d0b0819f35dc15c1e0981feb3a616c01437e7a2a69b378a0aa1c14370805b9d8
Contents?: true
Size: 521 Bytes
Versions: 6
Compression:
Stored size: 521 Bytes
Contents
class EasyPost::Printer < EasyPost::Resource def job response = EasyPost.make_request( :get, url + '/jobs', @api_key ) return EasyPost::Util::convert_to_easypost_object(response, api_key) end def print(params={}) if params.instance_of?(EasyPost::PostageLabel) temp = params.clone params = {} params[:postage_label] = temp end response = EasyPost.make_request( :post, url + '/print_postage_label', @api_key, params ) true rescue false end end
Version data entries
6 entries across 6 versions & 1 rubygems