Class: Esignatur::Client
- Inherits:
-
Object
- Object
- Esignatur::Client
- Defined in:
- lib/esignatur/client.rb
Constant Summary collapse
- DEFAULT_BASE_URL =
'https://api.esignatur.dk'.freeze
Instance Method Summary collapse
-
#initialize(api_key:, base_url: DEFAULT_BASE_URL) ⇒ Client
constructor
A new instance of Client.
- #orders ⇒ Object
Constructor Details
#initialize(api_key:, base_url: DEFAULT_BASE_URL) ⇒ Client
Returns a new instance of Client.
7 8 9 |
# File 'lib/esignatur/client.rb', line 7 def initialize(api_key:, base_url: DEFAULT_BASE_URL) @api = Esignatur::Api.new(api_key: api_key, base_url: base_url) end |
Instance Method Details
#orders ⇒ Object
11 12 13 |
# File 'lib/esignatur/client.rb', line 11 def orders Orders.new(api: api) end |