Sha256: dcca1a3cca8473b41e992cfbc353cda6f55234ff422019a47274d55e96845d90
Contents?: true
Size: 1.12 KB
Versions: 1
Compression:
Stored size: 1.12 KB
Contents
# encoding: utf-8 # module Mode module Sdk # Manage Mode API tokens: # [https://modeanalytics.com/settings/access_tokens] # (https://modeanalytics.com/settings/access_tokens) # # API authentication documentation: # [http://developer.modeanalytics.com/#page:authentication] # (http://developer.modeanalytics.com/#page:authentication) # # @attr_writer [String] token Mode API token # @attr_writer [String] secret Mode API secret # @attr_writer [String] host Mode API host # class Configuration # The default host to use for Mode API requests # DEFAULT_HOST = 'https://modeanalytics.com' attr_writer :token, :secret, :host # Mode API token # # @return [String] the token # def token @token || ENV['MODE_TOKEN'] end # Mode API secret # # @return [String] the secret # def secret @secret || ENV['MODE_SECRET'] end # Mode API host # # @return [String] the host # def host @host || ENV['MODE_HOST'] || DEFAULT_HOST end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
mode-sdk-0.1.0 | lib/mode/sdk/configuration.rb |