Sha256: 2c6478f3dd74dc29c5ccfe1e7bd2a95c476b78dbad536a8be713ca74a191c6af

Contents?: true

Size: 416 Bytes

Versions: 1

Compression:

Stored size: 416 Bytes

Contents

require "iremix/version"
require 'iremix/config'
require 'iremix/token'
require 'iremix/user'
require 'iremix/video'

module Iremix
  class << self
    attr_accessor :config

    def callback_url
      config.callback_url
    end

    def authorize_url(client)
      client.auth_code.authorize_url(:redirect_url => callback_url)
    end

    private
    def config
      @config ||= Iremix::Config
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
iremix-ruby-0.0.5 lib/iremix.rb