Skip to content

Commit dbd8448

Browse files
committed
Added has_more instance variable
1 parent e6e82cc commit dbd8448

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)