Sha256: 3cf26359dc73b61532888a154cc4b52669804d5ea56e0c4611f2089c6c2f0150
Contents?: true
Size: 517 Bytes
Versions: 1
Compression:
Stored size: 517 Bytes
Contents
require "yaml" require "duty_calculator" module DutyCalculator class Configuration attr_accessor :api_root, :api_version, :api_key, :api_base, :sandbox, :debug def initialize defaults = load_defaults @api_root = defaults[:api_root] @api_version = defaults[:api_version] @sandbox = defaults[:sandbox] @debug = defaults[:debug] end private def load_defaults YAML.load_file(File.join(File.dirname(__FILE__),'..','config','defaults.yml')) end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
duty_calculator-0.0.1 | lib/duty_calculator/configuration.rb |