Module: SleeperFF::Configurable
- Included in:
- Client
- Defined in:
- lib/sleeper_ff/configurable.rb
Instance Attribute Summary collapse
-
#api_endpoint ⇒ Object
Returns the value of attribute api_endpoint.
-
#default_media_type ⇒ Object
Returns the value of attribute default_media_type.
-
#user_agent ⇒ Object
Returns the value of attribute user_agent.
Class Method Summary collapse
Instance Method Summary collapse
Instance Attribute Details
#api_endpoint ⇒ Object
Returns the value of attribute api_endpoint.
5 6 7 |
# File 'lib/sleeper_ff/configurable.rb', line 5 def api_endpoint @api_endpoint end |
#default_media_type ⇒ Object
Returns the value of attribute default_media_type.
5 6 7 |
# File 'lib/sleeper_ff/configurable.rb', line 5 def default_media_type @default_media_type end |
#user_agent ⇒ Object
Returns the value of attribute user_agent.
5 6 7 |
# File 'lib/sleeper_ff/configurable.rb', line 5 def user_agent @user_agent end |
Class Method Details
.keys ⇒ Object
8 9 10 11 12 13 14 |
# File 'lib/sleeper_ff/configurable.rb', line 8 def keys @keys ||= [ :api_endpoint, :user_agent, :default_media_type ] end |
Instance Method Details
#configure {|_self| ... } ⇒ Object
17 18 19 |
# File 'lib/sleeper_ff/configurable.rb', line 17 def configure yield self end |