Class: GettyConnect::Client
- Inherits:
-
Object
- Object
- GettyConnect::Client
- Includes:
- Image, Session, Connection, Request
- Defined in:
- lib/getty_connect/client.rb,
lib/getty_connect/client/image.rb,
lib/getty_connect/client/session.rb
Defined Under Namespace
Instance Attribute Summary collapse
-
#secure_token ⇒ Object
Returns the value of attribute secure_token.
-
#token ⇒ Object
Returns the value of attribute token.
-
#token_duration ⇒ Object
Returns the value of attribute token_duration.
-
#token_issued_at ⇒ Object
Returns the value of attribute token_issued_at.
-
#token_renewed_at ⇒ Object
Returns the value of attribute token_renewed_at.
Instance Method Summary collapse
-
#initialize(options = {}) ⇒ Client
constructor
A new instance of Client.
Methods included from Image
#download, #get_details, #get_download_token, #get_largest_download_auth, #get_preview, #search
Methods included from Session
Methods included from Request
#delete, #get, #patch, #post, #put
Constructor Details
#initialize(options = {}) ⇒ Client
Returns a new instance of Client.
12 13 14 15 16 17 |
# File 'lib/getty_connect/client.rb', line 12 def initialize(={}) = GettyConnect..merge() Config::VALID_OPTIONS_KEYS.each do |key| send("#{key}=", [key]) end end |
Instance Attribute Details
#secure_token ⇒ Object
Returns the value of attribute secure_token.
10 11 12 |
# File 'lib/getty_connect/client.rb', line 10 def secure_token @secure_token end |
#token ⇒ Object
Returns the value of attribute token.
10 11 12 |
# File 'lib/getty_connect/client.rb', line 10 def token @token end |
#token_duration ⇒ Object
Returns the value of attribute token_duration.
10 11 12 |
# File 'lib/getty_connect/client.rb', line 10 def token_duration @token_duration end |
#token_issued_at ⇒ Object
Returns the value of attribute token_issued_at.
10 11 12 |
# File 'lib/getty_connect/client.rb', line 10 def token_issued_at @token_issued_at end |
#token_renewed_at ⇒ Object
Returns the value of attribute token_renewed_at.
10 11 12 |
# File 'lib/getty_connect/client.rb', line 10 def token_renewed_at @token_renewed_at end |