Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add fields #19

Open
wants to merge 4 commits into
base: master
Choose a base branch
from

Conversation

toshi-saito
Copy link
Contributor

No description provided.

@@ -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
Copy link
Collaborator

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]

Copy link
Owner

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

Copy link
Contributor Author

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.

@@ -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
Copy link
Collaborator

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]

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants