class PlayStationNetwork::User

Public Class Methods

new(identity) click to toggle source
Calls superclass method PlayStationNetwork::API::new
# File lib/playstationnetwork/user.rb, line 6
def initialize(identity)
  raise INVALID_IDENTITY_TYPE unless identity.is_a?(String)

  super
  options[:user_id] = identity
end

Public Instance Methods

games(dig_to: ['games']) click to toggle source
# File lib/playstationnetwork/user.rb, line 17
def games(dig_to: ['games'])
  post('/psnGetUserGames', dig_to: dig_to)
end
profile() click to toggle source
# File lib/playstationnetwork/user.rb, line 13
def profile
  post('/psnGetUser')
end
trophies(npcommid, dig_to: ['trophies']) click to toggle source
# File lib/playstationnetwork/user.rb, line 21
def trophies(npcommid, dig_to: ['trophies'])
  raise INVALID_IDENTITY_TYPE unless npcommid.is_a?(String)

  options[:npcommid] = npcommid
  post('/psnGetUserTrophies', dig_to: dig_to)
end