Class: OpenRecycling::ModuleClient
- Inherits:
-
Object
- Object
- OpenRecycling::ModuleClient
- Defined in:
- lib/open_recycling/module_client.rb
Direct Known Subclasses
Apps::Client, Client, Core::Client, Documents::Client, Org::Client
Instance Attribute Summary collapse
-
#base_url ⇒ Object
readonly
Returns the value of attribute base_url.
-
#jwt_token ⇒ Object
readonly
Returns the value of attribute jwt_token.
Instance Method Summary collapse
-
#initialize(base_url: nil, jwt_token: nil) ⇒ ModuleClient
constructor
A new instance of ModuleClient.
Constructor Details
#initialize(base_url: nil, jwt_token: nil) ⇒ ModuleClient
Returns a new instance of ModuleClient.
6 7 8 9 |
# File 'lib/open_recycling/module_client.rb', line 6 def initialize(base_url: nil, jwt_token: nil) @jwt_token = jwt_token || OpenRecycling.jwt_token @base_url = base_url || OpenRecycling.api_url end |
Instance Attribute Details
#base_url ⇒ Object (readonly)
Returns the value of attribute base_url.
4 5 6 |
# File 'lib/open_recycling/module_client.rb', line 4 def base_url @base_url end |
#jwt_token ⇒ Object (readonly)
Returns the value of attribute jwt_token.
4 5 6 |
# File 'lib/open_recycling/module_client.rb', line 4 def jwt_token @jwt_token end |