Class: Jpay::Configuration
- Inherits:
-
Object
- Object
- Jpay::Configuration
- Defined in:
- lib/jpay.rb
Overview
Configures the gem
Instance Attribute Summary collapse
-
#api ⇒ Object
Returns the value of attribute api.
-
#callback_url ⇒ Object
Returns the value of attribute callback_url.
-
#client ⇒ Object
Returns the value of attribute client.
Instance Method Summary collapse
-
#initialize ⇒ Configuration
constructor
A new instance of Configuration.
Constructor Details
#initialize ⇒ Configuration
Returns a new instance of Configuration.
28 29 30 31 32 |
# File 'lib/jpay.rb', line 28 def initialize @api = 'randome-api-xyz' @client = 'http://www.jahanpay.com/webservice?wsdl' @callback_url = 'localhost:3000/verify' end |
Instance Attribute Details
#api ⇒ Object
Returns the value of attribute api.
26 27 28 |
# File 'lib/jpay.rb', line 26 def api @api end |
#callback_url ⇒ Object
Returns the value of attribute callback_url.
26 27 28 |
# File 'lib/jpay.rb', line 26 def callback_url @callback_url end |
#client ⇒ Object
Returns the value of attribute client.
26 27 28 |
# File 'lib/jpay.rb', line 26 def client @client end |