Class: HashImporter
- Inherits:
-
Object
- Object
- HashImporter
- Defined in:
- lib/turbine-core/importers/hash_importer.rb
Instance Attribute Summary collapse
-
#result ⇒ Object
Returns the value of attribute result.
-
#type ⇒ Object
Returns the value of attribute type.
Instance Method Summary collapse
- #import(hash) ⇒ Object
-
#initialize(type) ⇒ HashImporter
constructor
A new instance of HashImporter.
Constructor Details
#initialize(type) ⇒ HashImporter
Returns a new instance of HashImporter.
5 6 7 8 |
# File 'lib/turbine-core/importers/hash_importer.rb', line 5 def initialize(type) @type = type @result = {} end |
Instance Attribute Details
#result ⇒ Object
Returns the value of attribute result.
3 4 5 |
# File 'lib/turbine-core/importers/hash_importer.rb', line 3 def result @result end |
#type ⇒ Object
Returns the value of attribute type.
3 4 5 |
# File 'lib/turbine-core/importers/hash_importer.rb', line 3 def type @type end |
Instance Method Details
#import(hash) ⇒ Object
10 11 12 |
# File 'lib/turbine-core/importers/hash_importer.rb', line 10 def import(hash) @result = hash end |