lib/rents.rb in rents-0.1.8 vs lib/rents.rb in rents-0.1.9
- old
+ new
@@ -1,20 +1,27 @@
# Libs/Gems or Ruby classes
require 'json'
require 'curl'
require 'rest_client'
+require 'bigdecimal'
+require 'bigdecimal/util'
# Overrides
require 'rents/hash'
# Gem files
-[:version, :connection, :status, :transaction].each { |lib| require "rents/#{lib}" }
+[:version, :connection, :status, :transaction, :currency, :string].each { |lib| require "rents/#{lib}" }
module Rents
+ # Production settings
@@app_id = nil
@@secret_key = nil
+ # Tests settings
+ @@test_env = nil
+ @@debugger = nil
+
def self.app_id=(app_id)
@@app_id = app_id
end
def self.app_id
@@ -25,7 +32,23 @@
@@secret_key = secret_key
end
def self.secret_key
@@secret_key
+ end
+
+ def self.test_env
+ @@test_env
+ end
+
+ def self.test_env=(test_env)
+ @@test_env = test_env
+ end
+
+ def self.debugger
+ @@test_env
+ end
+
+ def self.debugger=(debugger)
+ @@debugger = debugger
end
end