This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[21] pry(#<Post>):1> post | |
=> #<Post:0x00000005bb5558 | |
id: 1, | |
title: "My even different title", | |
body: "This is different", | |
created_at: Fri, 30 Oct 2015 15:35:42 UTC +00:00, | |
updated_at: Fri, 30 Oct 2015 18:34:03 UTC +00:00> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require 'oauth' | |
require 'json' | |
# https://developer.yahoo.com/ to register app for consumer key and consumer secret | |
module Yahoo | |
CONSUMER_KEY = ENV['CONSUMER_KEY'] | |
CONSUMER_SECRET = ENV['CONSUMER_SECRET'] | |
class YQLFinance | |
def initialize(consumer_key = CONSUMER_KEY, consumer_secret = CONSUMER_SECRET) |