Class: ActiveProject::Configurations::TrelloConfiguration
- Inherits:
-
BaseAdapterConfiguration
- Object
- BaseAdapterConfiguration
- ActiveProject::Configurations::TrelloConfiguration
- Defined in:
- lib/active_project/configurations/trello_configuration.rb
Overview
Holds Trello-specific configuration options.
Instance Attribute Summary collapse
-
#status_mappings ⇒ Hash
Supports expanded status vocabulary: :open, :in_progress, :blocked, :on_hold, :closed.
Attributes inherited from BaseAdapterConfiguration
Instance Method Summary collapse
- #freeze ⇒ Object
-
#initialize(options = {}) ⇒ TrelloConfiguration
constructor
A new instance of TrelloConfiguration.
Methods inherited from BaseAdapterConfiguration
#method_missing, #respond_to_missing?, #retry_options
Constructor Details
#initialize(options = {}) ⇒ TrelloConfiguration
Returns a new instance of TrelloConfiguration.
22 23 24 25 |
# File 'lib/active_project/configurations/trello_configuration.rb', line 22 def initialize( = {}) super @status_mappings = .delete(:status_mappings) || {} end |
Dynamic Method Handling
This class handles dynamic methods through the method_missing method in the class ActiveProject::Configurations::BaseAdapterConfiguration
Instance Attribute Details
#status_mappings ⇒ Hash
Supports expanded status vocabulary: :open, :in_progress, :blocked, :on_hold, :closed
20 21 22 |
# File 'lib/active_project/configurations/trello_configuration.rb', line 20 def status_mappings @status_mappings end |
Instance Method Details
#freeze ⇒ Object
43 44 45 46 47 48 |
# File 'lib/active_project/configurations/trello_configuration.rb', line 43 def freeze # Ensure nested hashes are also frozen @status_mappings.each_value(&:freeze) @status_mappings.freeze super end |