Module: Unloq::Ratings

Included in:
Client
Defined in:
lib/unloq/ratings.rb

Instance Method Summary collapse

Instance Method Details

#lookup_author_ratings(author) ⇒ Object

Fetch the ratings for an author

Parameters:

  • author (Unloq::Entity)

    The author for which you want to retrieve ratings



8
9
10
11
12
# File 'lib/unloq/ratings.rb', line 8

def lookup_author_ratings author
  validate_author(author)

  get('/ratings', "/#{author.id}")
end