Class: HashImporter

Inherits:
Object
  • Object
show all
Defined in:
lib/turbine-core/importers/hash_importer.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#resultObject

Returns the value of attribute result.



3
4
5
# File 'lib/turbine-core/importers/hash_importer.rb', line 3

def result
  @result
end

#typeObject

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