Class: Thanos::ResponseHolder
- Inherits:
-
Object
- Object
- Thanos::ResponseHolder
- Defined in:
- lib/thanos/response_holder.rb
Instance Attribute Summary collapse
-
#results ⇒ Object
readonly
Returns the value of attribute results.
Instance Method Summary collapse
-
#initialize(response) ⇒ ResponseHolder
constructor
A new instance of ResponseHolder.
Constructor Details
#initialize(response) ⇒ ResponseHolder
Returns a new instance of ResponseHolder.
5 6 7 8 |
# File 'lib/thanos/response_holder.rb', line 5 def initialize(response) data = response.data @results = data['results'].first end |
Instance Attribute Details
#results ⇒ Object (readonly)
Returns the value of attribute results.
3 4 5 |
# File 'lib/thanos/response_holder.rb', line 3 def results @results end |