class Memerator::Stats

The Memerator Stats

Public Class Methods

new(data) click to toggle source

@!visibility private

# File lib/memerator/stats.rb, line 4
def initialize(data)
  @data = data
end

Public Instance Methods

memers() click to toggle source

@return [Integer] the total number of people who have submitted a meme

# File lib/memerator/stats.rb, line 24
def memers
  @data['unique_memers']
end
memes() click to toggle source

@return [Integer] the total number of Memerator memes

# File lib/memerator/stats.rb, line 9
def memes
  @data['memes']
end
ratings() click to toggle source

@return [Integer] the total number of ratings

# File lib/memerator/stats.rb, line 14
def ratings
  @data['ratings']
end
users() click to toggle source

@return [Integer] the number of registered website users

# File lib/memerator/stats.rb, line 19
def users
  @data['website_users']
end