Class: Holoserve::Fixture::Importer

Inherits:
Object
  • Object
show all
Defined in:
lib/holoserve/fixture/importer.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(hash, fixtures) ⇒ Importer

Returns a new instance of Importer.



7
8
9
# File 'lib/holoserve/fixture/importer.rb', line 7

def initialize(hash, fixtures)
  @hash, @fixtures = hash, fixtures
end

Instance Attribute Details

#fixturesObject

Returns the value of attribute fixtures.



5
6
7
# File 'lib/holoserve/fixture/importer.rb', line 5

def fixtures
  @fixtures
end

#hashObject

Returns the value of attribute hash.



4
5
6
# File 'lib/holoserve/fixture/importer.rb', line 4

def hash
  @hash
end

Instance Method Details

#resultObject



11
12
13
14
15
16
# File 'lib/holoserve/fixture/importer.rb', line 11

def result
  @result = { }
  import
  merge
  @result
end