Sha256: 2cbde2de3435f4f894ffa5546d176f85f98c08d7cb2d7e802541af2de055674b

Contents?: true

Size: 299 Bytes

Versions: 7

Compression:

Stored size: 299 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

7 entries across 7 versions & 2 rubygems

Version Path
unsplash-3.1.1 lib/unsplash/stats.rb
unsplash-3.0.0 lib/unsplash/stats.rb
unsplash-2.1.0 lib/unsplash/stats.rb
unsplash-2.0.1 lib/unsplash/stats.rb
unsplash-2.0.0 lib/unsplash/stats.rb
unsplash-1.5.6 lib/unsplash/stats.rb
unsplash_mango-1.0.0 lib/unsplash/stats.rb