Class: OpenRecycling::Core::RecyclingAccounts
- Defined in:
- lib/open_recycling/core/recycling_accounts.rb
Instance Attribute Summary
Attributes inherited from Resource
#api_url, #jwt_token, #root_node_plural, #root_node_singular
Instance Method Summary collapse
-
#initialize(base_url: nil, jwt_token: nil) ⇒ RecyclingAccounts
constructor
A new instance of RecyclingAccounts.
Methods inherited from Resource
#all, #create, #destroy, #ensure_supported_method, #find, only, supported_methods, #update
Constructor Details
#initialize(base_url: nil, jwt_token: nil) ⇒ RecyclingAccounts
Returns a new instance of RecyclingAccounts.
6 7 8 9 10 11 12 13 |
# File 'lib/open_recycling/core/recycling_accounts.rb', line 6 def initialize(base_url: nil, jwt_token: nil) super( root_node_singular: "recycling_account", root_node_plural: "recycling_accounts", api_url: "#{base_url}/recycling_accounts", jwt_token: jwt_token ) end |