Class: Orderspace::Endpoint

Inherits:
Object
  • Object
show all
Defined in:
lib/orderspace/endpoint/endpoint.rb,
lib/orderspace/endpoint/oauth.rb,
lib/orderspace/endpoint/orders.rb,
lib/orderspace/endpoint/webhooks.rb,
lib/orderspace/endpoint/customers.rb

Overview

Defines the parent class for the endpoints

Defined Under Namespace

Modules: Customers, Oauth, Orders, Webhooks

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(client) ⇒ Endpoint

Endpoints are initialized by passing the client

Parameters:

  • client (Orderspace::Client)

    the Orderspace client that interacts with the Orderspace API



12
13
14
# File 'lib/orderspace/endpoint/endpoint.rb', line 12

def initialize(client)
  @client = client
end

Instance Attribute Details

#clientObject (readonly)

Returns the value of attribute client.



7
8
9
# File 'lib/orderspace/endpoint/endpoint.rb', line 7

def client
  @client
end