Sha256: c4330ce2adcfe9ea12b3d1dfca3eaa165d848a0e9d03b9c7c7ef07133fd550bc
Contents?: true
Size: 524 Bytes
Versions: 2
Compression:
Stored size: 524 Bytes
Contents
# Configure Reach5 module Reach5 # Global configuration for API calls. class Configuration attr_accessor :customer_domain attr_accessor :client_key attr_accessor :client_secret def initialize @customer_domain = "NO_CUSTOMER_DOMAIN_SET" @client_key = "NO_CLIENT_KEY_SET" @client_secret = "NO_SECRET_ACCESS_TOKEN_SET" end end class << self attr_accessor :configuration end def self.configure(&block) (self.configuration ||= Configuration.new).tap(&block) end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
reach5-0.1.1 | lib/reach5/configuration.rb |
reach5-0.1.0 | lib/reach5/configuration.rb |