Module: Osu::API::UserScore

Included in:
UserBestScore, UserRecentScore
Defined in:
lib/osu/api.rb

Instance Method Summary collapse

Instance Method Details

#initialize(user, mode = :standard, limit: nil) ⇒ Object


65
66
67
68
69
70
71
# File 'lib/osu/api.rb', line 65

def initialize(user, mode = :standard, limit: nil)
  @params = {}

  @params.merge! API.user(user) if user
  @params.merge! API.mode(mode) if mode
  @params.merge! API.limit(limit) if limit
end