Class: EzpayInvoice::Client

Constant Summary

Constants included from Configurable

EzpayInvoice::Configurable::MODES

Instance Attribute Summary

Attributes included from Configurable

#hash_iv, #hash_key, #merchant_id

Instance Method Summary collapse

Methods included from Api::Endpoints::AllowanceInvalid

#allowance_invalid

Methods included from Api::Endpoints::AllowanceTouchIssue

#allowance_touch_issue

Methods included from Api::Endpoints::AllowanceIssue

#allowance_issue

Methods included from Api::Endpoints::InvoiceSearch

#invoice_search

Methods included from Api::Endpoints::InvoiceInvalid

#invoice_invalid

Methods included from Api::Endpoints::InvoiceTouchIssue

#invoice_touch_issue

Methods included from Api::Endpoints::InvoiceIssue

#invoice_issue

Methods included from Request

#post

Methods included from Configurable

attributes, #config, #mode, #mode=, #setup

Constructor Details

#initialize(options = {}) ⇒ Client

Returns a new instance of Client.



24
25
26
27
28
29
# 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