Sha256: 23eab5cb24902c9d77d66c692e957eec2db8bbc73fec6ad984687fef46566082

Contents?: true

Size: 298 Bytes

Versions: 17

Compression:

Stored size: 298 Bytes

Contents

module Unsplash # :nodoc:

  # Retrieve Unsplash stats
  class Stats < Client

    class << self
      # Get a list of statistics regardling Unsplash as a whole.
      # @return [Hash] The numbers.
      def total
        JSON.parse(connection.get("/stats/total").body)
      end
    end
  end

end

Version data entries

17 entries across 17 versions & 1 rubygems

Version Path
unsplash-1.5.5 lib/unsplash/stats.rb
unsplash-1.5.4 lib/unsplash/stats.rb
unsplash-1.5.3 lib/unsplash/stats.rb
unsplash-1.5.2 lib/unsplash/stats.rb
unsplash-1.5.1 lib/unsplash/stats.rb
unsplash-1.5.0 lib/unsplash/stats.rb
unsplash-1.4.3 lib/unsplash/stats.rb
unsplash-1.4.2 lib/unsplash/stats.rb
unsplash-1.4.1 lib/unsplash/stats.rb
unsplash-1.4.0 lib/unsplash/stats.rb
unsplash-1.3.1 lib/unsplash/stats.rb
unsplash-1.3.0 lib/unsplash/stats.rb
unsplash-1.2.1 lib/unsplash/stats.rb
unsplash-1.2.0 lib/unsplash/stats.rb
unsplash-1.1.0 lib/unsplash/stats.rb
unsplash-1.0.0 lib/unsplash/stats.rb
unsplash-1.0.0.pre.rc.2 lib/unsplash/stats.rb