Class: ActiveExplorer::Writer

Inherits:
Object
  • Object
show all
Defined in:
lib/writer.rb

Instance Method Summary collapse

Constructor Details

#initialize(exploration) ⇒ Writer

Returns a new instance of Writer.



3
4
5
# File 'lib/writer.rb', line 3

def initialize(exploration)
  @exploration = exploration
end

Instance Method Details

#writeObject



7
8
9
10
11
12
13
# File 'lib/writer.rb', line 7

def write
  exploration_hash = @exploration.get_hash

  puts "\nExplored #{exploration_hash[:class_name]}(#{exploration_hash[:attributes][:id]}):\n\n"
  write_object(exploration_hash)
  puts "\n"
end