Class: ResourcesApi
- Inherits:
-
PermitBaseApi
- Object
- PermitBaseApi
- ResourcesApi
- Defined in:
- lib/api/resources.rb
Instance Attribute Summary
Attributes inherited from PermitBaseApi
Instance Method Summary collapse
- #get(resource_key) ⇒ Object
-
#initialize(client, config, logger) ⇒ ResourcesApi
constructor
A new instance of ResourcesApi.
Methods inherited from PermitBaseApi
Constructor Details
#initialize(client, config, logger) ⇒ ResourcesApi
Returns a new instance of ResourcesApi.
4 5 6 |
# File 'lib/api/resources.rb', line 4 def initialize(client, config, logger) super end |
Instance Method Details
#get(resource_key) ⇒ Object
8 9 10 11 12 |
# File 'lib/api/resources.rb', line 8 def get(resource_key) data = @client.get_tenant(config.context.project, config.context.project, resource_key) data end |