Class: Affirm::API

Inherits:
Object
  • Object
show all
Defined in:
lib/affirm/api.rb

Class Attribute Summary collapse

Class Method Summary collapse

Class Attribute Details

.api_urlObject

Returns the value of attribute api_url.



4
5
6
# File 'lib/affirm/api.rb', line 4

def api_url
  @api_url
end

.public_keyObject

Returns the value of attribute public_key.



4
5
6
# File 'lib/affirm/api.rb', line 4

def public_key
  @public_key
end

.secret_keyObject

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

.clientObject



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