Class: Uploadcare::Api::Rest::Project
- Inherits:
-
Object
- Object
- Uploadcare::Api::Rest::Project
- Defined in:
- lib/uploadcare/api/rest/project.rb
Overview
REST API endpoint for project information.
Instance Attribute Summary collapse
-
#rest ⇒ Uploadcare::Api::Rest
readonly
Parent REST client.
Instance Method Summary collapse
-
#initialize(rest:) ⇒ Project
constructor
A new instance of Project.
-
#show(request_options: {}) ⇒ Uploadcare::Result
Get current project information.
Constructor Details
#initialize(rest:) ⇒ Project
Returns a new instance of Project.
11 12 13 |
# File 'lib/uploadcare/api/rest/project.rb', line 11 def initialize(rest:) @rest = rest end |
Instance Attribute Details
#rest ⇒ Uploadcare::Api::Rest (readonly)
Returns Parent REST client.
8 9 10 |
# File 'lib/uploadcare/api/rest/project.rb', line 8 def rest @rest end |
Instance Method Details
#show(request_options: {}) ⇒ Uploadcare::Result
Get current project information.
20 21 22 |
# File 'lib/uploadcare/api/rest/project.rb', line 20 def show(request_options: {}) rest.get(path: '/project/', params: {}, headers: {}, request_options: ) end |