Sha256: 11bd81f0eb4db932073f6c2efb38aba138b4f29bd08824f437a4934b44fb2846
Contents?: true
Size: 587 Bytes
Versions: 21
Compression:
Stored size: 587 Bytes
Contents
module EasyPost class Printer < Resource def job response, api_key = EasyPost.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, api_key = EasyPost.request( :post, url + '/print_postage_label', @api_key, params ) return true rescue return false end end end
Version data entries
21 entries across 21 versions & 1 rubygems