class Billplz::Configuration
Attributes
api_key[RW]
http_timeout[RW]
mode[RW]
Public Class Methods
new(options={})
click to toggle source
# File lib/billplz/configuration.rb, line 5 def initialize(options={}) @http_timeout = 30 @mode = 'live' end
Public Instance Methods
options()
click to toggle source
# File lib/billplz/configuration.rb, line 10 def options hash = Hash.new %w[api_key http_timeout mode].map{|key| hash[key.to_sym] = send(key) } hash end