Class: Grape::Util::StrictHashConfiguration::SettingsContainer
- Inherits:
-
Object
- Object
- Grape::Util::StrictHashConfiguration::SettingsContainer
- Defined in:
- lib/grape/util/strict_hash_configuration.rb
Instance Method Summary collapse
-
#initialize ⇒ SettingsContainer
constructor
A new instance of SettingsContainer.
- #to_hash ⇒ Object
Constructor Details
#initialize ⇒ SettingsContainer
Returns a new instance of SettingsContainer.
23 24 25 26 |
# File 'lib/grape/util/strict_hash_configuration.rb', line 23 def initialize @settings = {} @contexts = {} end |
Instance Method Details
#to_hash ⇒ Object
28 29 30 |
# File 'lib/grape/util/strict_hash_configuration.rb', line 28 def to_hash @settings.to_hash end |