Class: Kody::Configuration
- Inherits:
-
Object
- Object
- Kody::Configuration
- Defined in:
- lib/kody/configuration.rb
Constant Summary collapse
- PRODUCTION_ENDPOINT =
KodyPay gRPC endpoints by region Production endpoints
'grpc.kodypay.com:443'- PRODUCTION_AP_ENDPOINT =
Default
'grpc-ap.kodypay.com:443'- PRODUCTION_EU_ENDPOINT =
Asia-Pacific
'grpc-eu.kodypay.com:443'- STAGING_ENDPOINT =
Staging endpoints
'grpc-staging.kodypay.com:443'- STAGING_AP_ENDPOINT =
Default
'grpc-staging-ap.kodypay.com:443'- STAGING_EU_ENDPOINT =
Asia-Pacific
'grpc-staging-eu.kodypay.com:443'
Instance Attribute Summary collapse
-
#api_key ⇒ Object
Europe.
-
#endpoint ⇒ Object
Europe.
-
#store_id ⇒ Object
Europe.
Instance Method Summary collapse
-
#initialize ⇒ Configuration
constructor
A new instance of Configuration.
- #production! ⇒ Object
- #production_ap! ⇒ Object
- #production_eu! ⇒ Object
- #staging! ⇒ Object
- #staging_ap! ⇒ Object
- #staging_eu! ⇒ Object
Constructor Details
#initialize ⇒ Configuration
Returns a new instance of Configuration.
16 17 18 |
# File 'lib/kody/configuration.rb', line 16 def initialize @endpoint = PRODUCTION_ENDPOINT end |
Instance Attribute Details
#api_key ⇒ Object
Europe
14 15 16 |
# File 'lib/kody/configuration.rb', line 14 def api_key @api_key end |
#endpoint ⇒ Object
Europe
14 15 16 |
# File 'lib/kody/configuration.rb', line 14 def endpoint @endpoint end |
#store_id ⇒ Object
Europe
14 15 16 |
# File 'lib/kody/configuration.rb', line 14 def store_id @store_id end |
Instance Method Details
#production! ⇒ Object
32 33 34 |
# File 'lib/kody/configuration.rb', line 32 def production! @endpoint = PRODUCTION_ENDPOINT end |
#production_ap! ⇒ Object
36 37 38 |
# File 'lib/kody/configuration.rb', line 36 def production_ap! @endpoint = PRODUCTION_AP_ENDPOINT end |
#production_eu! ⇒ Object
40 41 42 |
# File 'lib/kody/configuration.rb', line 40 def production_eu! @endpoint = PRODUCTION_EU_ENDPOINT end |
#staging! ⇒ Object
20 21 22 |
# File 'lib/kody/configuration.rb', line 20 def staging! @endpoint = STAGING_ENDPOINT end |
#staging_ap! ⇒ Object
24 25 26 |
# File 'lib/kody/configuration.rb', line 24 def staging_ap! @endpoint = STAGING_AP_ENDPOINT end |
#staging_eu! ⇒ Object
28 29 30 |
# File 'lib/kody/configuration.rb', line 28 def staging_eu! @endpoint = STAGING_EU_ENDPOINT end |