Module: Tarpon::Configuration

Included in:
Client
Defined in:
lib/tarpon/configuration.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#base_uriObject



12
13
14
# File 'lib/tarpon/configuration.rb', line 12

def base_uri
  @base_uri || 'https://api.revenuecat.com/v1'
end

#http_middlewareObject



20
21
22
# File 'lib/tarpon/configuration.rb', line 20

def http_middleware
  @http_middleware ||= ->(http_client) { http_client }
end

#public_api_keyObject

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_keyObject

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

#timeoutObject



16
17
18
# File 'lib/tarpon/configuration.rb', line 16

def timeout
  @timeout || 5
end

Instance Method Details

#configure {|_self| ... } ⇒ Object

Yields:

  • (_self)

Yield Parameters:



8
9
10
# File 'lib/tarpon/configuration.rb', line 8

def configure
  yield self
end