Sha256: 9278846157870ce158e5129444d038227b7de2a8dcc66b142659dfbd8e5acd8b
Contents?: true
Size: 684 Bytes
Versions: 3
Compression:
Stored size: 684 Bytes
Contents
require "typetalk/version" require 'typetalk/error' require 'typetalk/api' require 'hashie' module Typetalk DEFAULT_OPTIONS = { client_id: ENV['TYPETALK_CLIENT_ID'], client_secret: ENV['TYPETALK_CLIENT_SECRET'], redirect_uri: nil, grant_type: 'client_credentials', # or 'authorization_code' scope: 'topic.read,topic.post,my', endpoint: 'https://typetalk.in/api/v1', proxy: nil, user_agent: "Typetalk Rubygem #{Typetalk::VERSION}", } class << self def config @config ||= Hashie::Mash.new(Typetalk::DEFAULT_OPTIONS) end def reset_config @config = nil end def configure yield config end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
typetalk-0.0.5 | lib/typetalk.rb |
typetalk-0.0.4 | lib/typetalk.rb |
typetalk-0.0.3 | lib/typetalk.rb |