Module: Freshly::Configurable
- Included in:
- Client
- Defined in:
- lib/freshly/configurable.rb
Instance Attribute Summary collapse
-
#api_endpoint ⇒ Object
Returns the value of attribute api_endpoint.
-
#api_key ⇒ Object
Returns the value of attribute api_key.
-
#auto_paginate ⇒ Object
Returns the value of attribute auto_paginate.
-
#connection_options ⇒ Object
Returns the value of attribute connection_options.
-
#media_type ⇒ Object
Returns the value of attribute media_type.
-
#middleware ⇒ Object
Returns the value of attribute middleware.
-
#per_page ⇒ Object
Returns the value of attribute per_page.
-
#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.
3 4 5 |
# File 'lib/freshly/configurable.rb', line 3 def api_endpoint @api_endpoint end |
#api_key ⇒ Object
Returns the value of attribute api_key.
3 4 5 |
# File 'lib/freshly/configurable.rb', line 3 def api_key @api_key end |
#auto_paginate ⇒ Object
Returns the value of attribute auto_paginate.
3 4 5 |
# File 'lib/freshly/configurable.rb', line 3 def auto_paginate @auto_paginate end |
#connection_options ⇒ Object
Returns the value of attribute connection_options.
3 4 5 |
# File 'lib/freshly/configurable.rb', line 3 def @connection_options end |
#media_type ⇒ Object
Returns the value of attribute media_type.
3 4 5 |
# File 'lib/freshly/configurable.rb', line 3 def media_type @media_type end |
#middleware ⇒ Object
Returns the value of attribute middleware.
3 4 5 |
# File 'lib/freshly/configurable.rb', line 3 def middleware @middleware end |
#per_page ⇒ Object
Returns the value of attribute per_page.
3 4 5 |
# File 'lib/freshly/configurable.rb', line 3 def per_page @per_page end |
#user_agent ⇒ Object
Returns the value of attribute user_agent.
3 4 5 |
# File 'lib/freshly/configurable.rb', line 3 def user_agent @user_agent end |
Class Method Details
.keys ⇒ Object
8 9 10 11 12 13 14 15 16 17 18 19 |
# File 'lib/freshly/configurable.rb', line 8 def keys @keys ||= [ :api_key, :api_endpoint, :auto_paginate, :connection_options, :media_type, :per_page, :user_agent, :middleware ] end |
Instance Method Details
#configure {|_self| ... } ⇒ Object
22 23 24 |
# File 'lib/freshly/configurable.rb', line 22 def configure yield self end |