Class: IntersoftAPI::ShippingAccountResource
- Defined in:
- lib/intersoft_api/resources/shipping_account.rb
Instance Attribute Summary
Attributes inherited from Resource
Instance Method Summary collapse
Methods inherited from Resource
#get_request, #initialize, #post_request, #put_request
Constructor Details
This class inherits a constructor from IntersoftAPI::Resource
Instance Method Details
#create(attributes) ⇒ Object
5 6 7 |
# File 'lib/intersoft_api/resources/shipping_account.rb', line 5 def create(attributes) ShippingAccount.new(post_request("shippingAccounts/rm", body: attributes).body) end |
#find(shipping_account_id) ⇒ Object
9 10 11 |
# File 'lib/intersoft_api/resources/shipping_account.rb', line 9 def find(shipping_account_id) ShippingAccount.new(get_request("shippingAccounts/rm/#{shipping_account_id}").body) end |