Class: AppConfig::Storage::ConfigData

Inherits:
OpenStruct
  • Object
show all
Defined in:
lib/app_config/storage/config_data.rb

Overview

OpenStruct wrapper to hold the underlying `Storage` data.

Instance Method Summary collapse

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_hashObject Also known as: to_h


11
12
13
# File 'lib/app_config/storage/config_data.rb', line 11

def to_hash
  marshal_dump
end