Class: I2X::SeedReader

Inherits:
Object
  • Object
show all
Defined in:
lib/i2x/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

CSVSeedReader, JSONSeedReader, XMLSeedReader

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(agent, seed) ⇒ SeedReader

Returns a new instance of SeedReader.



13
14
15
16
17
18
19
# File 'lib/i2x/seedreader.rb', line 13

def initialize agent, seed
	@agent = agent
	@help = I2X::Helper.new
	@seed = seed
	@objects = Array.new
	puts "\t\tSeed: #{@seed[:identifier]}"
end

Instance Attribute Details

#agentObject

Returns the value of attribute agent.



11
12
13
# File 'lib/i2x/seedreader.rb', line 11

def agent
  @agent
end

#objectsObject

Returns the value of attribute objects.



11
12
13
# File 'lib/i2x/seedreader.rb', line 11

def objects
  @objects
end

#seedObject

Returns the value of attribute seed.



11
12
13
# File 'lib/i2x/seedreader.rb', line 11

def seed
  @seed
end