Class: Shift4::Configuration

Inherits:
Object
  • Object
show all
Defined in:
lib/shift4/configuration.rb

Direct Known Subclasses

RequestOptions

Class Attribute Summary collapse

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(secret_key:, merchant: nil, api_url: 'https://api.shift4.com', uploads_url: 'https://uploads.api.shift4.com') ⇒ Configuration

Returns a new instance of Configuration.



24
25
26
27
28
29
30
31
32
33
34
# File 'lib/shift4/configuration.rb', line 24

def initialize(
  secret_key:,
  merchant: nil,
  api_url: 'https://api.shift4.com',
  uploads_url: 'https://uploads.api.shift4.com'
)
  self.api_url = api_url
  self.uploads_url = uploads_url
  self.secret_key = secret_key
  self.merchant = merchant
end

Class Attribute Details

.api_urlObject

Returns the value of attribute api_url.



7
8
9
# File 'lib/shift4/configuration.rb', line 7

def api_url
  @api_url
end

.merchantObject

Returns the value of attribute merchant.



6
7
8
# File 'lib/shift4/configuration.rb', line 6

def merchant
  @merchant
end

.secret_keyObject

Returns the value of attribute secret_key.



6
7
8
# File 'lib/shift4/configuration.rb', line 6

def secret_key
  @secret_key
end

.uploads_urlObject

Returns the value of attribute uploads_url.



7
8
9
# File 'lib/shift4/configuration.rb', line 7

def uploads_url
  @uploads_url
end

Instance Attribute Details

#api_urlObject

Returns the value of attribute api_url.



22
23
24
# File 'lib/shift4/configuration.rb', line 22

def api_url
  @api_url
end

#merchantObject

Returns the value of attribute merchant.



21
22
23
# File 'lib/shift4/configuration.rb', line 21

def merchant
  @merchant
end

#secret_keyObject

Returns the value of attribute secret_key.



21
22
23
# File 'lib/shift4/configuration.rb', line 21

def secret_key
  @secret_key
end

#uploads_urlObject

Returns the value of attribute uploads_url.



22
23
24
# File 'lib/shift4/configuration.rb', line 22

def uploads_url
  @uploads_url
end