Module: PaylerAPI
- Defined in:
- lib/payler_api/request.rb,
lib/payler_api.rb,
lib/payler_api/response.rb
Overview
class for response
Defined Under Namespace
Classes: Configuration, Request, Response
Constant Summary collapse
- AvailableMethods =
[:pay, :block, :charge, :retrieve, :refund, :repeat_pay, :get_template, :activate_template, :get_status, :get_advanced_status, :send_3ds, :customer_register]
Class Attribute Summary collapse
-
.configuration ⇒ Object
Returns the value of attribute configuration.
Class Method Summary collapse
Class Attribute Details
.configuration ⇒ Object
Returns the value of attribute configuration.
17 18 19 |
# File 'lib/payler_api.rb', line 17 def configuration @configuration end |
Class Method Details
.configure {|configuration| ... } ⇒ Object
23 24 25 |
# File 'lib/payler_api.rb', line 23 def configure yield(configuration) end |
.method_missing(method, *arguments, &block) ⇒ Object
8 9 10 11 12 |
# File 'lib/payler_api.rb', line 8 def self.method_missing(method, *arguments, &block) return super unless AvailableMethods.include? method PaylerAPI::Request.new(method, *arguments).process end |