Class: Elastic::Results::Metric
- Defined in:
- lib/elastic/results/metric.rb
Instance Attribute Summary collapse
-
#value ⇒ Object
readonly
Returns the value of attribute value.
Instance Method Summary collapse
- #as_value ⇒ Object
-
#initialize(_value) ⇒ Metric
constructor
A new instance of Metric.
Methods inherited from Base
Methods included from Support::Traversable
Constructor Details
#initialize(_value) ⇒ Metric
Returns a new instance of Metric.
5 6 7 |
# File 'lib/elastic/results/metric.rb', line 5 def initialize(_value) @value = _value end |
Instance Attribute Details
#value ⇒ Object (readonly)
Returns the value of attribute value.
3 4 5 |
# File 'lib/elastic/results/metric.rb', line 3 def value @value end |
Instance Method Details
#as_value ⇒ Object
9 10 11 |
# File 'lib/elastic/results/metric.rb', line 9 def as_value @value end |