-
Notifications
You must be signed in to change notification settings - Fork 25
add fields #19
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
base: master
Are you sure you want to change the base?
add fields #19
Conversation
@@ -1,14 +1,19 @@ | |||
module RubyStackoverflow | |||
class Client | |||
class ResponseData | |||
attr_reader :data, :has_more, :error | |||
attr_reader :data, :has_more, :error, :raw_response, :raw_data, :quota_max, :quota_remaining, :backoff |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Line is too long. [108/80]
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Wondering how we get that raw_response and raw_data
I can see :quota_max, :quota_remaining, :backoff here https://api.stackexchange.com/docs/wrapper
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
raw_data:
I want do data to json. but couldn't.
It was possible.
JSON.generate(res.raw_data)
raw_response:
It was possible to "full response" to json.
* expand_response_data: add fields
@@ -1,17 +1,27 @@ | |||
module RubyStackoverflow | |||
class Client | |||
class ResponseData | |||
attr_reader :data, :has_more, :error | |||
attr_reader :has_more, :error, :raw_response, :raw_data, :quota_max, :quota_remaining, :backoff |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Line is too long. [101/80]
No description provided.