Class: EzpayInvoice::Client
- Inherits:
-
Object
- Object
- EzpayInvoice::Client
- Includes:
- Api::Endpoints::AllowanceInvalid, Api::Endpoints::AllowanceIssue, Api::Endpoints::AllowanceTouchIssue, Api::Endpoints::InvoiceInvalid, Api::Endpoints::InvoiceIssue, Api::Endpoints::InvoiceSearch, Api::Endpoints::InvoiceTouchIssue, Configurable, Request
- Defined in:
- lib/ezpay-invoice/client.rb
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
-
#initialize(options = {}) ⇒ Client
constructor
A new instance of Client.
Methods included from Api::Endpoints::AllowanceInvalid
Methods included from Api::Endpoints::AllowanceTouchIssue
Methods included from Api::Endpoints::AllowanceIssue
Methods included from Api::Endpoints::InvoiceSearch
Methods included from Api::Endpoints::InvoiceInvalid
Methods included from Api::Endpoints::InvoiceTouchIssue
Methods included from Api::Endpoints::InvoiceIssue
Methods included from Request
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( = {}) EzpayInvoice::Configurable.attributes.each do |key| value = .key?(key) ? [key] : EzpayInvoice.send(key) instance_variable_set(:"@#{key}", value) end end |