Skip to content

Commit 70a74f6

Browse files
committed
Merge pull request #3 from eranhirs/master
Added has_more instance variable
2 parents 67c56e3 + 0a836a1 commit 70a74f6

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

lib/ruby-stackoverflow/client/response_data.rb

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,13 +2,14 @@
22
module RubyStackoverflow
33
class Client
44
class ResponseData
5-
attr_reader :data, :error
5+
attr_reader :data, :has_more, :error
66

77
def initialize(response, klass)
88
if response[:items].nil?
99
@error = StackoverflowError.new(response)
1010
else
1111
@data = format_data(response[:items], klass)
12+
@has_more = response[:has_more]
1213
end
1314
end
1415

0 commit comments

Comments
 (0)