Class: Shutterstock::Client
- Inherits:
-
Object
- Object
- Shutterstock::Client
- Includes:
- API::Auth, API::Images, API::Subscriptions, Configurable
- Defined in:
- lib/shutterstock/client.rb
Constant Summary
Constants included from API::Auth
Constants included from API::Util
API::Util::ENDPOINT, API::Util::FORMAT
Constants included from API::Subscriptions
API::Subscriptions::FORMAT, API::Subscriptions::SIZE
Constants included from API::Images
Instance Attribute Summary
Attributes included from Configurable
#api_key, #api_username, #email, #password, #username
Instance Method Summary collapse
-
#initialize(options = {}) ⇒ Client
constructor
A new instance of Client.
Methods included from API::Auth
Methods included from Configurable
#configure, #credentials, keys
Methods included from API::Util
Methods included from API::Subscriptions
Methods included from API::Images
Constructor Details
#initialize(options = {}) ⇒ Client
Returns a new instance of Client.
13 14 15 16 17 |
# File 'lib/shutterstock/client.rb', line 13 def initialize(={}) Shutterstock::Configurable.keys.each do |key| instance_variable_set(:"@#{key}", [key] || Shutterstock.instance_variable_get(:"@#{key}")) end end |