lib/nytimes_articles/base.rb in harrisj-nytimes-articles-0.1.2 vs lib/nytimes_articles/base.rb in harrisj-nytimes-articles-0.1.3
- old
+ new
@@ -9,20 +9,13 @@
API_VERSION = 'v1'
API_NAME = 'article'
API_BASE = "/svc/search/#{API_VERSION}/#{API_NAME}"
@@api_key = nil
- @@copyright = nil
@@debug = false
##
- # The copyright footer to be placed at the bottom of any data from the New York Times. Note this is only set after an API call.
- def self.copyright
- @@copyright
- end
-
- ##
# Set the API key used for operations. This needs to be called before any requests against the API. To obtain an API key, go to http://developer.nytimes.com/
def self.api_key=(key)
@@api_key = key
end
@@ -79,11 +72,9 @@
end
#case parsed_reply['status']
# FIXME
#end
-
- @@copyright = parsed_reply['copyright']
parsed_reply
rescue OpenURI::HTTPError => e
# FIXME: Return message from body?
case e.message
\ No newline at end of file