Class: Uploadcare::Client::ProjectAccessor
- Inherits:
-
Object
- Object
- Uploadcare::Client::ProjectAccessor
- Defined in:
- lib/uploadcare/client/project_accessor.rb
Overview
Project endpoint wrapper scoped to a client instance.
Instance Attribute Summary collapse
-
#client ⇒ Object
readonly
Returns the value of attribute client.
Instance Method Summary collapse
- #current(request_options: {}) ⇒ Uploadcare::Resources::Project
-
#initialize(client:) ⇒ ProjectAccessor
constructor
A new instance of ProjectAccessor.
Constructor Details
#initialize(client:) ⇒ ProjectAccessor
Returns a new instance of ProjectAccessor.
8 9 10 |
# File 'lib/uploadcare/client/project_accessor.rb', line 8 def initialize(client:) @client = client end |
Instance Attribute Details
#client ⇒ Object (readonly)
Returns the value of attribute client.
5 6 7 |
# File 'lib/uploadcare/client/project_accessor.rb', line 5 def client @client end |
Instance Method Details
#current(request_options: {}) ⇒ Uploadcare::Resources::Project
14 15 16 |
# File 'lib/uploadcare/client/project_accessor.rb', line 14 def current(request_options: {}) Uploadcare::Resources::Project.current(client: client, request_options: ) end |