Class: ARII::SeedReader
- Inherits:
-
Object
- Object
- ARII::SeedReader
- Defined in:
- lib/arii/seedreader.rb
Overview
Seed Reader
Main seed reading class, passing data for seeds to agent, to be inherited by SQL, File and URL templates
Direct Known Subclasses
Instance Attribute Summary collapse
-
#agent ⇒ Object
Returns the value of attribute agent.
-
#objects ⇒ Object
Returns the value of attribute objects.
-
#seed ⇒ Object
Returns the value of attribute seed.
Instance Method Summary collapse
-
#initialize(agent, seed) ⇒ SeedReader
constructor
A new instance of SeedReader.
Constructor Details
#initialize(agent, seed) ⇒ SeedReader
Returns a new instance of SeedReader.
13 14 15 16 17 18 19 |
# File 'lib/arii/seedreader.rb', line 13 def initialize agent, seed @agent = agent @help = ARII::Helper.new @seed = seed @objects = Array.new # puts "\t\tSeed: #{@seed[:identifier]}" end |
Instance Attribute Details
#agent ⇒ Object
Returns the value of attribute agent.
11 12 13 |
# File 'lib/arii/seedreader.rb', line 11 def agent @agent end |
#objects ⇒ Object
Returns the value of attribute objects.
11 12 13 |
# File 'lib/arii/seedreader.rb', line 11 def objects @objects end |
#seed ⇒ Object
Returns the value of attribute seed.
11 12 13 |
# File 'lib/arii/seedreader.rb', line 11 def seed @seed end |