Class: Riak::TimeSeries::Read
Instance Attribute Summary collapse
-
#client ⇒ Object
readonly
Returns the value of attribute client.
-
#key ⇒ Object
Returns the value of attribute key.
-
#table_name ⇒ Object
readonly
Returns the value of attribute table_name.
Instance Method Summary collapse
-
#initialize(client, table_name) ⇒ Read
constructor
A new instance of Read.
- #read! ⇒ Object
Constructor Details
#initialize(client, table_name) ⇒ Read
Returns a new instance of Read.
7 8 9 10 |
# File 'lib/riak/time_series/read.rb', line 7 def initialize(client, table_name) @client = client @table_name = table_name end |
Instance Attribute Details
#client ⇒ Object (readonly)
Returns the value of attribute client.
4 5 6 |
# File 'lib/riak/time_series/read.rb', line 4 def client @client end |
#key ⇒ Object
Returns the value of attribute key.
3 4 5 |
# File 'lib/riak/time_series/read.rb', line 3 def key @key end |
#table_name ⇒ Object (readonly)
Returns the value of attribute table_name.
5 6 7 |
# File 'lib/riak/time_series/read.rb', line 5 def table_name @table_name end |
Instance Method Details
#read! ⇒ Object
12 13 14 15 16 17 |
# File 'lib/riak/time_series/read.rb', line 12 def read! client.backend do |be| op = be.time_series_get_operator(client.) op.get(table_name, key) end end |