Sha256: bd3272e37372bfd9d2bdc10f56c8a41257361f401271af9b319d91ce2c738fc1

Contents?: true

Size: 273 Bytes

Versions: 9

Compression:

Stored size: 273 Bytes

Contents

module Zencoder

  class << self
    attr_accessor :api_key, :base_url
  end

  self.api_key  = nil
  self.base_url = 'https://app.zencoder.com/api/v2'

  def self.api_key
    @api_key || ENV['ZENCODER_API_KEY']
  end

  def self.base_url(env=nil)
    @base_url
  end

end

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
zencoder-2.5.1 lib/zencoder/zencoder.rb
zencoder-2.5.0 lib/zencoder/zencoder.rb
zencoder-2.4.6 lib/zencoder/zencoder.rb
zencoder-2.4.5 lib/zencoder/zencoder.rb
zencoder-2.4.4 lib/zencoder/zencoder.rb
zencoder-2.4.3 lib/zencoder/zencoder.rb
zencoder-2.4.2 lib/zencoder/zencoder.rb
zencoder-2.4.1 lib/zencoder/zencoder.rb
zencoder-2.4.0 lib/zencoder/zencoder.rb