Class: FubClient::Client
- Inherits:
-
Object
- Object
- FubClient::Client
- Includes:
- Singleton
- Defined in:
- lib/fub_client/client.rb
Constant Summary collapse
- API_URL =
'api.followupboss.com'- API_VERSION =
'v1'
Instance Attribute Summary collapse
- #api_key ⇒ Object
-
#her_api ⇒ Object
readonly
Returns the value of attribute her_api.
Instance Method Summary collapse
- #api_uri ⇒ Object
-
#initialize ⇒ Client
constructor
A new instance of Client.
Constructor Details
#initialize ⇒ Client
11 12 13 |
# File 'lib/fub_client/client.rb', line 11 def initialize init_her_api end |
Instance Attribute Details
#api_key ⇒ Object
15 16 17 |
# File 'lib/fub_client/client.rb', line 15 def api_key @api_key ||= ENV['FUB_API_KEY'] end |
#her_api ⇒ Object (readonly)
Returns the value of attribute her_api.
9 10 11 |
# File 'lib/fub_client/client.rb', line 9 def her_api @her_api end |
Instance Method Details
#api_uri ⇒ Object
19 20 21 |
# File 'lib/fub_client/client.rb', line 19 def api_uri @api_uri ||= URI::HTTPS.build(host: API_URL, path: "/#{API_VERSION}") end |