Class: ROM::InfluxDB::Commands::Create

Inherits:
Commands::Create
  • Object
show all
Defined in:
lib/rom/influxdb/commands.rb

Instance Method Summary collapse

Instance Method Details

#collectionObject



7
8
9
# File 'lib/rom/influxdb/commands.rb', line 7

def collection
  relation.dataset
end

#execute(document) ⇒ Object



11
12
13
14
# File 'lib/rom/influxdb/commands.rb', line 11

def execute(document)
  collection << document
  [document]
end