Sha256: e001108f000981b7a23d31ec9c802b2de551e5be399ba7a375043482ae3c9f25
Contents?: true
Size: 415 Bytes
Versions: 2
Compression:
Stored size: 415 Bytes
Contents
module Hubspot class Config class << self attr_reader :hapikey attr_reader :base_url def configure(config) config.stringify_keys! @hapikey = config["hapikey"] @base_url = config["base_url"] || "https://api.hubapi.com" self end def reset! @hapikey = nil @base_url = "https://api.hubapi.com" end end reset! end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
hubspot-ruby-0.1.1 | lib/hubspot/config.rb |
hubspot-ruby-0.1.0 | lib/hubspot/config.rb |