Module: Tarpon::Configuration
- Included in:
- Client
- Defined in:
- lib/tarpon/configuration.rb
Instance Attribute Summary collapse
- #base_uri ⇒ Object
- #http_middleware ⇒ Object
-
#public_api_key ⇒ Object
Returns the value of attribute public_api_key.
-
#secret_api_key ⇒ Object
Returns the value of attribute secret_api_key.
- #timeout ⇒ Object
Instance Method Summary collapse
Instance Attribute Details
#base_uri ⇒ Object
12 13 14 |
# File 'lib/tarpon/configuration.rb', line 12 def base_uri @base_uri || 'https://api.revenuecat.com/v1' end |
#http_middleware ⇒ Object
20 21 22 |
# File 'lib/tarpon/configuration.rb', line 20 def http_middleware @http_middleware ||= ->(http_client) { http_client } end |
#public_api_key ⇒ Object
Returns the value of attribute public_api_key.
5 6 7 |
# File 'lib/tarpon/configuration.rb', line 5 def public_api_key @public_api_key end |
#secret_api_key ⇒ Object
Returns the value of attribute secret_api_key.
5 6 7 |
# File 'lib/tarpon/configuration.rb', line 5 def secret_api_key @secret_api_key end |
#timeout ⇒ Object
16 17 18 |
# File 'lib/tarpon/configuration.rb', line 16 def timeout @timeout || 5 end |
Instance Method Details
#configure {|_self| ... } ⇒ Object
8 9 10 |
# File 'lib/tarpon/configuration.rb', line 8 def configure yield self end |