module ThumbalizrClient

Attributes

key[R]

@!attribute [r] Embed API key

secret[R]

@!attribute [r] Thumbalizr secret

Public Instance Methods

api_key() click to toggle source
# File lib/thumbalizr-rails/config.rb, line 27
def api_key
  raise 'ThumbalizrClient: API key missing. Don\'t forget to call ThumbalizrClient.config' if @api_key.nil?
  @api_key
end
api_key=(api_key) click to toggle source
# File lib/thumbalizr-rails/config.rb, line 23
def api_key=api_key
  @api_key = api_key
end
config(api_key, secret) click to toggle source

Configure the Thumbanlizr client

@param key [String] Embed API key @param secret [String] Thumbalizr secret

# File lib/thumbalizr-rails/config.rb, line 17
def config(api_key, secret)
  # mandatory
  self.api_key = api_key
  self.secret = secret
end
secret=(secret) click to toggle source
# File lib/thumbalizr-rails/config.rb, line 32
def secret=secret
  @secret = secret
end