Class: MachineShop::Customer
- Inherits:
-
APIResource
- Object
- MachineShopObject
- APIResource
- MachineShop::Customer
- Defined in:
- lib/machineshop/customer.rb
Instance Attribute Summary
Attributes inherited from MachineShopObject
Class Method Summary collapse
Methods included from APIOperations::Update
Methods included from APIOperations::Delete
Methods included from APIOperations::Create
Methods included from APIOperations::List
Methods inherited from APIResource
class_name, #refresh, retrieve, url, #url
Methods inherited from MachineShopObject
#[], #[]=, #as_json, construct_from, #each, #initialize, #inspect, #keys, #refresh_from, #to_hash, #to_json, #to_s, #values
Constructor Details
This class inherits a constructor from MachineShop::MachineShopObject
Dynamic Method Handling
This class handles dynamic methods through the method_missing method in the class MachineShop::MachineShopObject
Class Method Details
.update(id, auth_token, params = {}) ⇒ Object
9 10 11 12 |
# File 'lib/machineshop/customer.rb', line 9 def self.update(id,auth_token,params={}) response = MachineShop.put(self.url+"/#{id}", auth_token, params) Util.convert_to_machineshop_object(response, auth_token, self.class_name) end |