Sha256: 000fad24dd77cf10a95d66473c4b8f4a4a7bc367af175ed037c71ce448560ab9

Contents?: true

Size: 532 Bytes

Versions: 1

Compression:

Stored size: 532 Bytes

Contents

require "chatwork/version"

module ChatWork
  autoload(:Client, 'chatwork/client')

  @api_base = 'https://api.chatwork.com/'
  @api_version = '/v1'
  @api_key = nil

  class << self
    def client
      @client ||= Cluent.new(@api_key, @api_base, @api_version)
    end

    def api_base=(new_value)
      @api_base = new_value
      @client = nil
    end

    def api_key=(new_value)
      @api_key = new_value
      @client = nil
    end

    def api_base
      @api_base
    end

    def api_key
      @api_key
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
chatwork-0.0.1 lib/chatwork.rb