Class: HashToStruct::OpenStructBuilder
- Inherits:
-
Object
- Object
- HashToStruct::OpenStructBuilder
- Defined in:
- lib/hash_to_struct/open_struct_builder.rb
Class Method Summary collapse
Class Method Details
.build(hash) ⇒ Object
10 11 12 |
# File 'lib/hash_to_struct/open_struct_builder.rb', line 10 def build(hash) struct_class.new(hash) end |
.struct_class ⇒ Object
6 7 8 |
# File 'lib/hash_to_struct/open_struct_builder.rb', line 6 def struct_class ::OpenStruct end |