Class: Affirm::API
- Inherits:
-
Object
- Object
- Affirm::API
- Defined in:
- lib/affirm/api.rb
Class Attribute Summary collapse
-
.api_url ⇒ Object
Returns the value of attribute api_url.
-
.public_key ⇒ Object
Returns the value of attribute public_key.
-
.secret_key ⇒ Object
Returns the value of attribute secret_key.
Class Method Summary collapse
Class Attribute Details
.api_url ⇒ Object
Returns the value of attribute api_url.
4 5 6 |
# File 'lib/affirm/api.rb', line 4 def api_url @api_url end |
.public_key ⇒ Object
Returns the value of attribute public_key.
4 5 6 |
# File 'lib/affirm/api.rb', line 4 def public_key @public_key end |
.secret_key ⇒ Object
Returns the value of attribute secret_key.
4 5 6 |
# File 'lib/affirm/api.rb', line 4 def secret_key @secret_key end |
Class Method Details
.client ⇒ Object
7 8 9 10 11 12 13 |
# File 'lib/affirm/api.rb', line 7 def client @client ||= Affirm::Client.new( public_key: public_key, secret_key: secret_key, api_url: api_url ) end |