module VantivLite
Constants
- MAJOR
- MINOR
- TINY
- TRANSACTIONS
- VERSION
Attributes
default_config[R]
default_request[R]
Public Class Methods
configure(config = env_config, &blk)
click to toggle source
# File lib/vantiv_lite.rb, line 10 def configure(config = env_config, &blk) @default_config = block_given? ? Config.build(&blk) : Config.with_obj(config) @default_request = Request.new(@default_config) end
env_config()
click to toggle source
# File lib/vantiv_lite.rb, line 15 def env_config opts = Config::OPTS.each_with_object({}) do |k, h| env_key = "vantiv_#{k}" h[k] = ENV[env_key] if ENV.key?(env_key) end Config.new(opts) end
request(request_hash)
click to toggle source
# File lib/vantiv_lite.rb, line 23 def request(request_hash) default_request.(request_hash) end
Also aliased as: call
version()
click to toggle source
# File lib/vantiv_lite/version.rb, line 9 def self.version VERSION end