module Omise
Constants
- LIB_PATH
- VERSION
Attributes
api_key=[W]
api_url[RW]
api_version[RW]
app_key[W]
public_api_key[W]
resource[RW]
secret_api_key[W]
user_agent_suffix[RW]
vault_key=[W]
vault_url[RW]
Public Class Methods
api_key()
Backward compatibility with old API Keys naming conventions
Will be removed in 1.0
Alias for: secret_api_key
app_key()
click to toggle source
# File lib/omise/config.rb, line 20 def app_key get_key :app_key end
http_logger()
click to toggle source
# File lib/omise/config.rb, line 36 def http_logger @http_logger ||= Omise::HTTPLogger.new end
logger=(logger)
click to toggle source
# File lib/omise/config.rb, line 32 def logger=(logger) @http_logger = Omise::HTTPLogger.new(logger) end
public_api_key()
click to toggle source
# File lib/omise/config.rb, line 16 def public_api_key get_key :public_api_key end
Also aliased as: vault_key
secret_api_key()
click to toggle source
# File lib/omise/config.rb, line 12 def secret_api_key get_key :secret_api_key end
Also aliased as: api_key
test!()
click to toggle source
# File lib/omise/config.rb, line 40 def test! if !defined?(Omise::Testing::Resource) require "omise/testing/resource" end self.resource = Omise::Testing::Resource end
Private Class Methods
get_key(name)
click to toggle source
# File lib/omise/config.rb, line 50 def get_key(name) if key = instance_variable_get("@#{name}") key else raise "Set Omise.#{name} to use this feature" end end