Class: AnswerLayer::ResultEnvelope
Instance Attribute Summary
Attributes inherited from ApiResponse
#data, #headers, #status
Instance Method Summary
collapse
Methods inherited from ApiResponse
#[], #initialize, #to_h
Instance Method Details
#columns ⇒ Object
5
6
7
|
# File 'lib/answerlayer/responses/result_envelope.rb', line 5
def columns
self["columns"] || []
end
|
#has_next_page? ⇒ Boolean
21
22
23
|
# File 'lib/answerlayer/responses/result_envelope.rb', line 21
def has_next_page?
!next_cursor.nil? && !next_cursor.to_s.empty?
end
|
#next_cursor ⇒ Object
13
14
15
|
# File 'lib/answerlayer/responses/result_envelope.rb', line 13
def next_cursor
self["next_cursor"]
end
|
#result_handle ⇒ Object
17
18
19
|
# File 'lib/answerlayer/responses/result_envelope.rb', line 17
def result_handle
self["result_handle"]
end
|
#rows ⇒ Object
9
10
11
|
# File 'lib/answerlayer/responses/result_envelope.rb', line 9
def rows
self["rows"] || []
end
|