Class: GEXF

Inherits:
ResponseType show all
Defined in:
lib/response_types/gexf.rb

Instance Method Summary collapse

Methods inherited from ResponseType

#attribute_names, #attributes, #initialize, #parse_value, #set_as_time_if_timestamp, timestamped_keys, #to_json, #useful_attribute_names

Constructor Details

This class inherits a constructor from ResponseType

Instance Method Details

#to_file(file = StringIO.new) ⇒ Object



2
3
4
5
6
# File 'lib/response_types/gexf.rb', line 2

def to_file(file=StringIO.new)
  file.write(self.result)
  file.rewind
  file
end