We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
eg:
OAuth::RequestToken.class_eval do def to_json(*a)
{ 'json_class' => self.class.name, 'data' => instance_values }.to_json(*a) end
end
OAuth::RequestToken.instance_eval do
def json_create(o) consumer = OAuth::Consumer.new(o['data']['consumer']['key'], o['data']['consumer']['secret'], o['data']['consumer']['options']) OAuth::RequestToken.from_hash(consumer, o['data']['params'].update({:oauth_token=>o['data']['params']['oauth_token'], :oauth_token_secret=>o['data']['params']['oauth_token_secret']})) end
OAuth::AccessToken.class_eval do def to_json(*a)
OAuth::AccessToken.instance_eval do
def json_create(o) consumer = OAuth::Consumer.new(o['data']['consumer']['key'], o['data']['consumer']['secret'], o['data']['consumer']['options']) OAuth::AccessToken.from_hash(consumer, o['data']['params'].update({:oauth_token=>o['data']['params']['oauth_token'], :oauth_token_secret=>o['data']['params']['oauth_token_secret']})) end
The text was updated successfully, but these errors were encountered:
No branches or pull requests
eg:
OAuth::RequestToken.class_eval do
def to_json(*a)
puts 'to_json called in RequestToken'
end
OAuth::RequestToken.instance_eval do
end
OAuth::AccessToken.class_eval do
def to_json(*a)
puts 'to_json called in RequestToken'
end
OAuth::AccessToken.instance_eval do
end
The text was updated successfully, but these errors were encountered: