Class: Polar::Configuration
- Inherits:
-
Object
- Object
- Polar::Configuration
- Defined in:
- lib/polar/configuration.rb
Instance Attribute Summary collapse
-
#access_token ⇒ Object
Returns the value of attribute access_token.
-
#sandbox ⇒ Object
(also: #sandbox?)
Returns the value of attribute sandbox.
-
#webhook_secret ⇒ Object
Returns the value of attribute webhook_secret.
Instance Method Summary collapse
Instance Attribute Details
#access_token ⇒ Object
Returns the value of attribute access_token.
5 6 7 |
# File 'lib/polar/configuration.rb', line 5 def access_token @access_token end |
#sandbox ⇒ Object Also known as: sandbox?
Returns the value of attribute sandbox.
6 7 8 |
# File 'lib/polar/configuration.rb', line 6 def sandbox @sandbox end |
#webhook_secret ⇒ Object
Returns the value of attribute webhook_secret.
7 8 9 |
# File 'lib/polar/configuration.rb', line 7 def webhook_secret @webhook_secret end |
Instance Method Details
#endpoint ⇒ Object
11 12 13 |
# File 'lib/polar/configuration.rb', line 11 def endpoint "https://#{sandbox? ? "sandbox-api" : "api"}.polar.sh" end |