Class: Yield::SDK::Client

Inherits:
Object
  • Object
show all
Defined in:
lib/yield/sdk/client.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(api_key, base_url: nil, faraday_conn: nil) ⇒ Client

Returns a new instance of Client.



15
16
17
18
19
20
# File 'lib/yield/sdk/client.rb', line 15

def initialize(api_key, base_url: nil, faraday_conn: nil)
  @base = BaseClient.new(api_key, base_url:, faraday_conn:)

  @self = Self::Client.new(@base.self)
  @order = Order::Client.new(@base.order)
end

Instance Attribute Details

#baseObject (readonly)

Returns the value of attribute base.



10
11
12
# File 'lib/yield/sdk/client.rb', line 10

def base
  @base
end

#orderObject (readonly)

Returns the value of attribute order.



13
14
15
# File 'lib/yield/sdk/client.rb', line 13

def order
  @order
end

#selfObject (readonly)

Returns the value of attribute self.



12
13
14
# File 'lib/yield/sdk/client.rb', line 12

def self
  @self
end