Class: Memerator::Stats

Inherits:
Object
  • Object
show all
Defined in:
lib/memerator/stats.rb

Overview

The Memerator Stats

Instance Method Summary collapse

Instance Method Details

#memersInteger

Returns the total number of people who have submitted a meme.

Returns:

  • (Integer)

    the total number of people who have submitted a meme


24
25
26
# File 'lib/memerator/stats.rb', line 24

def memers
  @data['unique_memers']
end

#memesInteger

Returns the total number of Memerator memes.

Returns:

  • (Integer)

    the total number of Memerator memes


9
10
11
# File 'lib/memerator/stats.rb', line 9

def memes
  @data['memes']
end

#ratingsInteger

Returns the total number of ratings.

Returns:

  • (Integer)

    the total number of ratings


14
15
16
# File 'lib/memerator/stats.rb', line 14

def ratings
  @data['ratings']
end

#usersInteger

Returns the number of registered website users.

Returns:

  • (Integer)

    the number of registered website users


19
20
21
# File 'lib/memerator/stats.rb', line 19

def users
  @data['website_users']
end