Class: MachineShop::Customer

Inherits:
APIResource show all
Includes:
APIOperations::Create, APIOperations::Delete, APIOperations::List, APIOperations::Update
Defined in:
lib/machineshop/customer.rb

Instance Attribute Summary

Attributes inherited from MachineShopObject

#auth_token

Class Method Summary collapse

Methods included from APIOperations::Update

#update

Methods included from APIOperations::Delete

#delete

Methods included from APIOperations::Create

included

Methods included from APIOperations::List

included

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