Class: ROM::InfluxDB::Commands::Create
- Inherits:
-
Commands::Create
- Object
- Commands::Create
- ROM::InfluxDB::Commands::Create
- Defined in:
- lib/rom/influxdb/commands.rb
Instance Method Summary collapse
Instance Method Details
#collection ⇒ Object
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 |