Module: FridgeApi::Options
- Included in:
- Client
- Defined in:
- lib/fridge_api/options.rb
Constant Summary collapse
- DEFAULTS =
{ :api_endpoint => "https://api.fridgecms.com/v1" }
Instance Attribute Summary collapse
-
#access_token ⇒ Object
Returns the value of attribute access_token.
-
#client_id ⇒ Object
Returns the value of attribute client_id.
-
#client_secret ⇒ Object
Returns the value of attribute client_secret.
Class Method Summary collapse
Instance Method Summary collapse
Instance Attribute Details
#access_token ⇒ Object
Returns the value of attribute access_token.
8 9 10 |
# File 'lib/fridge_api/options.rb', line 8 def access_token @access_token end |
#client_id ⇒ Object
Returns the value of attribute client_id.
8 9 10 |
# File 'lib/fridge_api/options.rb', line 8 def client_id @client_id end |
#client_secret ⇒ Object
Returns the value of attribute client_secret.
8 9 10 |
# File 'lib/fridge_api/options.rb', line 8 def client_secret @client_secret end |
Class Method Details
.keys ⇒ Object
11 12 13 14 15 16 17 18 |
# File 'lib/fridge_api/options.rb', line 11 def keys @keys ||= [ :access_token, :api_endpoint, :client_id, :client_secret ] end |
Instance Method Details
#api_endpoint ⇒ Object
31 32 33 |
# File 'lib/fridge_api/options.rb', line 31 def api_endpoint File.join(@api_endpoint, "") end |
#configure {|_self| ... } ⇒ Object
21 22 23 |
# File 'lib/fridge_api/options.rb', line 21 def configure yield self end |