Sha256: 5b67a2d53bf8b8f6be2ec0959beba23f8f0a8dec92c1fb9bff45095fb8084870

Contents?: true

Size: 627 Bytes

Versions: 3

Compression:

Stored size: 627 Bytes

Contents

require 'cgi'
require 'open-uri'
require 'faraday'
require 'json'
require 'base64'
require 'core_extend'
require 'rongcloud/version'
require 'rongcloud/sign'
require 'rongcloud/service'
require 'rongcloud/service/user'
require 'rongcloud/service/message'

module Rongcloud
  class << self
    API_HOST = 'https://api.cn.rong.io'
    attr_accessor :app_key
    attr_accessor :app_secret
    attr_accessor :api_host

    def api_host
      unless @api_host
        return API_HOST
      end
      @api_host
    end

    attr_writer :debug_mode

    def debug_mode?
      @debug_mode.nil? ? true : !!@debug_mode
    end
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
rongcloud-0.1.7 lib/rongcloud.rb
rongcloud-0.1.6 lib/rongcloud.rb
rongcloud-0.1.5 lib/rongcloud.rb