Class: Monokera::SDK::Customer

Inherits:
ActiveModel show all
Defined in:
lib/monokera/sdk/customer.rb

Constant Summary collapse

BASE_ENDPOINT =
'/v1/customers'

Class Method Summary collapse

Methods inherited from ActiveModel

all, build, build_data, collection_endpoint, create, create!, #destroy, find, #new_record?, #persisted?, raven_context, resource_endpoint, #save, #save!, serialize_keys_json_api, #update, #update!

Methods inherited from Model

#add_error, #as_json, #except_attributes!, model_name, #to_json, #valid?

Methods included from ActiveModelSerializer

#read_attribute_for_serialization

Class Method Details

.clientObject



21
22
23
# File 'lib/monokera/sdk/customer.rb', line 21

def self.client
  @client ||= CustomerService::Client.new
end