lib/nytimes_articles/query.rb in taylorbarstow-nytimes-articles-0.2.1 vs lib/nytimes_articles/query.rb in taylorbarstow-nytimes-articles-0.3.0
- old
+ new
@@ -6,10 +6,10 @@
# The Query class represents a single query to the Article Search API. Supports
# all of the named parameters to Article.search as accessor methods.
#
class Query
FIELDS = [:only_facets, :except_facets, :begin_date, :end_date, :since,
- :before, :fee, :has_thumbnail, :facets, :fields, :query, :offset] + Article::TEXT_FIELDS.map(&:to_sym)
+ :before, :fee, :has_thumbnail, :facets, :fields, :query, :offset] + Article::TEXT_FIELDS.map{|f| f.to_sym}
FIELDS.each {|f| attr_accessor f}
# Produce a hash which uniquely identifies this query
def hash
strs = FIELDS.collect {|f| "#{f}:#{send(f).inspect}"}
\ No newline at end of file