Class: Uploadcare::Resources::Project
- Inherits:
-
BaseResource
- Object
- BaseResource
- Uploadcare::Resources::Project
- Defined in:
- lib/uploadcare/resources/project.rb
Overview
Project resource representing the current Uploadcare project.
Instance Attribute Summary collapse
-
#autostore_enabled ⇒ Object
Returns the value of attribute autostore_enabled.
-
#collaborators ⇒ Object
Returns the value of attribute collaborators.
-
#name ⇒ Object
Returns the value of attribute name.
-
#pub_key ⇒ Object
Returns the value of attribute pub_key.
Class Method Summary collapse
-
.current(client: nil, config: Uploadcare.configuration, request_options: {}) ⇒ Uploadcare::Resources::Project
(also: show)
Get current project information.
Instance Attribute Details
#autostore_enabled ⇒ Object
Returns the value of attribute autostore_enabled.
7 8 9 |
# File 'lib/uploadcare/resources/project.rb', line 7 def autostore_enabled @autostore_enabled end |
#collaborators ⇒ Object
Returns the value of attribute collaborators.
7 8 9 |
# File 'lib/uploadcare/resources/project.rb', line 7 def collaborators @collaborators end |
#name ⇒ Object
Returns the value of attribute name.
7 8 9 |
# File 'lib/uploadcare/resources/project.rb', line 7 def name @name end |
#pub_key ⇒ Object
Returns the value of attribute pub_key.
7 8 9 |
# File 'lib/uploadcare/resources/project.rb', line 7 def pub_key @pub_key end |
Class Method Details
.current(client: nil, config: Uploadcare.configuration, request_options: {}) ⇒ Uploadcare::Resources::Project Also known as: show
Get current project information.
15 16 17 18 19 20 21 |
# File 'lib/uploadcare/resources/project.rb', line 15 def self.current(client: nil, config: Uploadcare.configuration, request_options: {}) resolved_client = resolve_client(client: client, config: config) response = Uploadcare::Result.unwrap( resolved_client.api.rest.project.show(request_options: ) ) new(response, resolved_client) end |