Class: Shift4::Configuration
- Inherits:
-
Object
- Object
- Shift4::Configuration
- Defined in:
- lib/shift4/configuration.rb
Direct Known Subclasses
Class Attribute Summary collapse
-
.api_url ⇒ Object
Returns the value of attribute api_url.
-
.merchant ⇒ Object
Returns the value of attribute merchant.
-
.secret_key ⇒ Object
Returns the value of attribute secret_key.
-
.uploads_url ⇒ Object
Returns the value of attribute uploads_url.
Instance Attribute Summary collapse
-
#api_url ⇒ Object
Returns the value of attribute api_url.
-
#merchant ⇒ Object
Returns the value of attribute merchant.
-
#secret_key ⇒ Object
Returns the value of attribute secret_key.
-
#uploads_url ⇒ Object
Returns the value of attribute uploads_url.
Instance Method Summary collapse
-
#initialize(secret_key:, merchant: nil, api_url: 'https://api.shift4.com', uploads_url: 'https://uploads.api.shift4.com') ⇒ Configuration
constructor
A new instance of Configuration.
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_url ⇒ Object
Returns the value of attribute api_url.
7 8 9 |
# File 'lib/shift4/configuration.rb', line 7 def api_url @api_url end |
.merchant ⇒ Object
Returns the value of attribute merchant.
6 7 8 |
# File 'lib/shift4/configuration.rb', line 6 def merchant @merchant end |
.secret_key ⇒ Object
Returns the value of attribute secret_key.
6 7 8 |
# File 'lib/shift4/configuration.rb', line 6 def secret_key @secret_key end |
.uploads_url ⇒ Object
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_url ⇒ Object
Returns the value of attribute api_url.
22 23 24 |
# File 'lib/shift4/configuration.rb', line 22 def api_url @api_url end |
#merchant ⇒ Object
Returns the value of attribute merchant.
21 22 23 |
# File 'lib/shift4/configuration.rb', line 21 def merchant @merchant end |
#secret_key ⇒ Object
Returns the value of attribute secret_key.
21 22 23 |
# File 'lib/shift4/configuration.rb', line 21 def secret_key @secret_key end |
#uploads_url ⇒ Object
Returns the value of attribute uploads_url.
22 23 24 |
# File 'lib/shift4/configuration.rb', line 22 def uploads_url @uploads_url end |