Class: Riak::TimeSeries::Deletion
- Defined in:
- lib/riak/time_series/deletion.rb
Overview
Delete entries from Riak Time Series.
Instance Attribute Summary collapse
-
#client ⇒ Object
readonly
Returns the value of attribute client.
-
#key ⇒ Object
Returns the value of attribute key.
-
#options ⇒ Object
Returns the value of attribute options.
-
#table_name ⇒ Object
readonly
Returns the value of attribute table_name.
Instance Method Summary collapse
- #delete! ⇒ Object
-
#initialize(client, table_name) ⇒ Deletion
constructor
A new instance of Deletion.
Constructor Details
Instance Attribute Details
#client ⇒ Object (readonly)
Returns the value of attribute client.
22 23 24 |
# File 'lib/riak/time_series/deletion.rb', line 22 def client @client end |
#key ⇒ Object
Returns the value of attribute key.
19 20 21 |
# File 'lib/riak/time_series/deletion.rb', line 19 def key @key end |
#options ⇒ Object
Returns the value of attribute options.
20 21 22 |
# File 'lib/riak/time_series/deletion.rb', line 20 def @options end |
#table_name ⇒ Object (readonly)
Returns the value of attribute table_name.
23 24 25 |
# File 'lib/riak/time_series/deletion.rb', line 23 def table_name @table_name end |
Instance Method Details
#delete! ⇒ Object
31 32 33 34 35 36 37 38 |
# File 'lib/riak/time_series/deletion.rb', line 31 def delete! client.backend do |be| be.time_series_delete_operator.delete(table_name, key, ) end true end |