Class: Polar::Configuration

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#access_tokenObject

Returns the value of attribute access_token.



5
6
7
# File 'lib/polar/configuration.rb', line 5

def access_token
  @access_token
end

#sandboxObject 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_secretObject

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

#endpointObject



11
12
13
# File 'lib/polar/configuration.rb', line 11

def endpoint
  "https://#{sandbox? ? "sandbox-api" : "api"}.polar.sh"
end