Class: Holoserve::Fixture::Importer
- Inherits:
-
Object
- Object
- Holoserve::Fixture::Importer
- Defined in:
- lib/holoserve/fixture/importer.rb
Instance Attribute Summary collapse
-
#fixtures ⇒ Object
Returns the value of attribute fixtures.
-
#hash ⇒ Object
Returns the value of attribute hash.
Instance Method Summary collapse
-
#initialize(hash, fixtures) ⇒ Importer
constructor
A new instance of Importer.
- #result ⇒ Object
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
#fixtures ⇒ Object
Returns the value of attribute fixtures.
5 6 7 |
# File 'lib/holoserve/fixture/importer.rb', line 5 def fixtures @fixtures end |
#hash ⇒ Object
Returns the value of attribute hash.
4 5 6 |
# File 'lib/holoserve/fixture/importer.rb', line 4 def hash @hash end |
Instance Method Details
#result ⇒ Object
11 12 13 14 15 16 |
# File 'lib/holoserve/fixture/importer.rb', line 11 def result @result = { } import merge @result end |