Module: ShutterstockRuby

Defined in:
lib/shutterstock-ruby.rb,
lib/shutterstock-ruby/images.rb,
lib/shutterstock-ruby/videos.rb,
lib/shutterstock-ruby/connections.rb

Overview

Top level name space for the entire Gem.

Defined Under Namespace

Modules: Connections Classes: Configuration, Images, Videos

Constant Summary collapse

API_BASE =
'api.shutterstock.com/v2'

Class Method Summary collapse

Class Method Details

.configurationObject



11
12
13
# File 'lib/shutterstock-ruby.rb', line 11

def self.configuration
  @configuration ||=  Configuration.new
end

.configure {|configuration| ... } ⇒ Object

Yields:



15
16
17
18
# File 'lib/shutterstock-ruby.rb', line 15

def self.configure
  self.configuration ||= Configuration.new
  yield(configuration) if block_given?
end