Class: AppConfig::Storage::ConfigData
- Inherits:
-
OpenStruct
- Object
- OpenStruct
- AppConfig::Storage::ConfigData
- Defined in:
- lib/app_config/storage/config_data.rb
Overview
OpenStruct wrapper to hold the underlying ‘Storage` data.
Instance Method Summary collapse
-
#initialize(hash = {}) ⇒ ConfigData
constructor
Accepts a Hash and passes that along to ‘OpenStruct.new`.
- #to_hash ⇒ Object (also: #to_h)
Constructor Details
#initialize(hash = {}) ⇒ ConfigData
Accepts a Hash and passes that along to ‘OpenStruct.new`.
7 8 9 |
# File 'lib/app_config/storage/config_data.rb', line 7 def initialize(hash = {}) super(hash) end |
Instance Method Details
#to_hash ⇒ Object Also known as: to_h
11 12 13 |
# File 'lib/app_config/storage/config_data.rb', line 11 def to_hash marshal_dump end |