Class: Yield::SDK::Client
- Inherits:
-
Object
- Object
- Yield::SDK::Client
- Defined in:
- lib/yield/sdk/client.rb
Instance Attribute Summary collapse
-
#base ⇒ Object
readonly
Returns the value of attribute base.
-
#order ⇒ Object
readonly
Returns the value of attribute order.
-
#self ⇒ Object
readonly
Returns the value of attribute self.
Instance Method Summary collapse
-
#initialize(api_key, base_url: nil, faraday_conn: nil) ⇒ Client
constructor
A new instance of Client.
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
#base ⇒ Object (readonly)
Returns the value of attribute base.
10 11 12 |
# File 'lib/yield/sdk/client.rb', line 10 def base @base end |
#order ⇒ Object (readonly)
Returns the value of attribute order.
13 14 15 |
# File 'lib/yield/sdk/client.rb', line 13 def order @order end |
#self ⇒ Object (readonly)
Returns the value of attribute self.
12 13 14 |
# File 'lib/yield/sdk/client.rb', line 12 def self @self end |