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.
8 9 10 |
# File 'lib/riak/time_series/deletion.rb', line 8 def client @client end |
#key ⇒ Object
Returns the value of attribute key.
5 6 7 |
# File 'lib/riak/time_series/deletion.rb', line 5 def key @key end |
#options ⇒ Object
Returns the value of attribute options.
6 7 8 |
# File 'lib/riak/time_series/deletion.rb', line 6 def @options end |
#table_name ⇒ Object (readonly)
Returns the value of attribute table_name.
9 10 11 |
# File 'lib/riak/time_series/deletion.rb', line 9 def table_name @table_name end |
Instance Method Details
#delete! ⇒ Object
17 18 19 20 21 22 23 24 |
# File 'lib/riak/time_series/deletion.rb', line 17 def delete! client.backend do |be| be.time_series_delete_operator.delete(table_name, key, ) end true end |