Class: ActionFigure::Configuration::Settings
- Inherits:
-
Object
- Object
- ActionFigure::Configuration::Settings
- Defined in:
- lib/action_figure/configuration.rb
Overview
Holds ActionFigure configuration values.
Instance Attribute Summary collapse
-
#activesupport_notifications ⇒ Object
Returns the value of attribute activesupport_notifications.
-
#api_version ⇒ Object
Returns the value of attribute api_version.
-
#format ⇒ Object
Returns the value of attribute format.
-
#whiny_extra_params ⇒ Object
Returns the value of attribute whiny_extra_params.
Instance Method Summary collapse
- #configure {|_self| ... } ⇒ Object
-
#initialize ⇒ Settings
constructor
A new instance of Settings.
- #register(**formatters) ⇒ Object
Constructor Details
#initialize ⇒ Settings
Returns a new instance of Settings.
10 11 12 13 14 |
# File 'lib/action_figure/configuration.rb', line 10 def initialize @format = :default @whiny_extra_params = false @activesupport_notifications = false end |
Instance Attribute Details
#activesupport_notifications ⇒ Object
Returns the value of attribute activesupport_notifications.
8 9 10 |
# File 'lib/action_figure/configuration.rb', line 8 def activesupport_notifications @activesupport_notifications end |
#api_version ⇒ Object
Returns the value of attribute api_version.
8 9 10 |
# File 'lib/action_figure/configuration.rb', line 8 def api_version @api_version end |
#format ⇒ Object
Returns the value of attribute format.
8 9 10 |
# File 'lib/action_figure/configuration.rb', line 8 def format @format end |
#whiny_extra_params ⇒ Object
Returns the value of attribute whiny_extra_params.
8 9 10 |
# File 'lib/action_figure/configuration.rb', line 8 def whiny_extra_params @whiny_extra_params end |
Instance Method Details
#configure {|_self| ... } ⇒ Object
16 17 18 |
# File 'lib/action_figure/configuration.rb', line 16 def configure yield self end |
#register(**formatters) ⇒ Object
20 21 22 |
# File 'lib/action_figure/configuration.rb', line 20 def register(**formatters) ActionFigure.register_formatter(**formatters) end |