lib/gxapi.rb in gxapi_rails-0.0.5 vs lib/gxapi.rb in gxapi_rails-0.0.6

- old
+ new

@@ -63,9 +63,17 @@ Gxapi::Ostruct.new(YAML.load(yml)[Gxapi.env]) end end # + # manual setter for for config settings + # + # @return [Gxapi::Ostruct] + def self.config=(settings={}) + @config = Gxapi::Ostruct.new(settings) + end + + # # get the config path for our config YAML file # # @return [String] defaults to #{Rails.root}/config/gxapi.yml def self.config_path @config_path ||= File.join(Rails.root, "config/gxapi.yml")