Class: ConfigStore::API
- Inherits:
-
Object
- Object
- ConfigStore::API
- Includes:
- AccountAPIMethods, NamespaceAPIMethods, RecordAPIMethods, TokenAPIMethods, HTTParty
- Defined in:
- lib/configstore/apis/api.rb
Instance Method Summary collapse
-
#initialize(token:, base_url:) ⇒ API
constructor
A new instance of API.
Methods included from TokenAPIMethods
#create_token, #delete_token, #get_token, #list_tokens, #update_token
Methods included from RecordAPIMethods
#create_record, #delete_record, #get_record, #list_records, #update_record
Methods included from NamespaceAPIMethods
#create_namespace, #delete_namespace, #get_namespace, #list_namespaces, #update_namespace
Methods included from AccountAPIMethods
#create_account, #delete_account, #get_account, #list_accounts
Constructor Details
#initialize(token:, base_url:) ⇒ API
Returns a new instance of API.
15 16 17 18 19 20 21 |
# File 'lib/configstore/apis/api.rb', line 15 def initialize(token:, base_url:) @token = token @options = { base_uri: base_url, headers: headers, } end |