lib/thumbtack/posts.rb
# Create Hash of dates to counts from dates response
#
# @return [Hash{Date => Integer}]
#
# @api private
Create Hash of dates to counts from dates response
Create Hash of dates to counts from dates response
def dates_with_counts_from(response)
      entries = response.fetch("dates", EMPTY_HASH).map do |date, count|
        [Types::Date.deserialize(date), count.to_i]
      end
      Hash[entries]
    end
def dates_with_counts_from ( response ) entries = response . fetch ( "dates" , EMPTY_HASH ) . map do | date , count | [ Types :: Date . deserialize ( date ) , count . to_i ] end Hash [ entries ] end
Create Hash of dates to counts from dates response
Create Hash of dates to counts from dates response
None
Hash{Date => Integer}
response
<not_specific>
api
None