Class: Aurfy::Client
- Inherits:
-
Object
- Object
- Aurfy::Client
- Defined in:
- lib/aurfy/client.rb
Instance Attribute Summary collapse
-
#api_url ⇒ Object
readonly
Returns the value of attribute api_url.
-
#merchantid ⇒ Object
readonly
Returns the value of attribute merchantid.
-
#trade_certificate ⇒ Object
readonly
Returns the value of attribute trade_certificate.
Instance Method Summary collapse
-
#initialize(options = {}) ⇒ Client
constructor
A new instance of Client.
- #purchase(options = {}) ⇒ Object
Constructor Details
#initialize(options = {}) ⇒ Client
Returns a new instance of Client.
8 9 10 11 12 |
# File 'lib/aurfy/client.rb', line 8 def initialize( = {}) @api_url = [:test] ? TEST_API_URL : API_URL @merchantid = [:merchantid] @trade_certificate = [:trade_certificate] end |
Instance Attribute Details
#api_url ⇒ Object (readonly)
Returns the value of attribute api_url.
6 7 8 |
# File 'lib/aurfy/client.rb', line 6 def api_url @api_url end |
#merchantid ⇒ Object (readonly)
Returns the value of attribute merchantid.
6 7 8 |
# File 'lib/aurfy/client.rb', line 6 def merchantid @merchantid end |
#trade_certificate ⇒ Object (readonly)
Returns the value of attribute trade_certificate.
6 7 8 |
# File 'lib/aurfy/client.rb', line 6 def trade_certificate @trade_certificate end |