class EzpayInvoice::Client

Public Class Methods

new(options = {}) click to toggle source
# File lib/ezpay-invoice/client.rb, line 24
def initialize(options = {})
  EzpayInvoice::Configurable.attributes.each do |key|
    value = options.key?(key) ? options[key] : EzpayInvoice.send(key)
    instance_variable_set(:"@#{key}", value)
  end
end