Class: Thanos::ResponseHolder

Inherits:
Object
  • Object
show all
Defined in:
lib/thanos/response_holder.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#resultsObject (readonly)

Returns the value of attribute results.



3
4
5
# File 'lib/thanos/response_holder.rb', line 3

def results
  @results
end