class RSGuitarTech::SavedGame::Statistics
Attributes
json[RW]
Public Class Methods
new(json)
click to toggle source
# File lib/rsgt/saved_game/statistics.rb, line 7 def initialize(json) @json = json end
Public Instance Methods
dlc_played_count()
click to toggle source
# File lib/rsgt/saved_game/statistics.rb, line 50 def dlc_played_count json['DLCPlayedCount'].to_i end
games_seconds()
click to toggle source
# File lib/rsgt/saved_game/statistics.rb, line 20 def games_seconds json['GuitarcadePlayedTime'].map(&:values).flatten.inject(&:+) end
las_seconds()
click to toggle source
# File lib/rsgt/saved_game/statistics.rb, line 16 def las_seconds json['TimePlayed'] end
lesson_second()
click to toggle source
# File lib/rsgt/saved_game/statistics.rb, line 24 def lesson_second json['TimePlayedAndLesson'] - las_seconds end
longest_streak()
click to toggle source
# File lib/rsgt/saved_game/statistics.rb, line 70 def longest_streak json['Streak'].to_i end
missions_completed()
click to toggle source
/ Timing Section
# File lib/rsgt/saved_game/statistics.rb, line 34 def missions_completed json['TotalNumMissionCompletions'].to_i end
rs_seconds()
click to toggle source
# File lib/rsgt/saved_game/statistics.rb, line 28 def rs_seconds session_seconds + las_seconds + games_seconds + lesson_second end
sa_songs_cleared_hard()
click to toggle source
# File lib/rsgt/saved_game/statistics.rb, line 82 def sa_songs_cleared_hard json['SANumSongsClearedHard'].to_i end
sa_songs_cleared_master()
click to toggle source
# File lib/rsgt/saved_game/statistics.rb, line 86 def sa_songs_cleared_master json['SANumSongsClearedMaster'].to_i end
sa_songs_played_hard()
click to toggle source
# File lib/rsgt/saved_game/statistics.rb, line 74 def sa_songs_played_hard json['SASongsPlayedHardAndMore'].to_i end
sa_songs_played_master()
click to toggle source
# File lib/rsgt/saved_game/statistics.rb, line 78 def sa_songs_played_master json['SASongsPlayedMaster'].to_i end
session_count()
click to toggle source
# File lib/rsgt/saved_game/statistics.rb, line 38 def session_count json['SessionCnt'].to_i end
session_mission_time()
click to toggle source
# File lib/rsgt/saved_game/statistics.rb, line 66 def session_mission_time json['SessionMissionTime'] end
session_seconds()
click to toggle source
Timing Section
# File lib/rsgt/saved_game/statistics.rb, line 12 def session_seconds json['SessionTime'] end
songs_bass_played_count()
click to toggle source
# File lib/rsgt/saved_game/statistics.rb, line 62 def songs_bass_played_count json['SongsBassPlayedCount'].to_i end
songs_lead_played_count()
click to toggle source
# File lib/rsgt/saved_game/statistics.rb, line 54 def songs_lead_played_count json['SongsLeadPlayedCount'].to_i end
songs_mastered_count()
click to toggle source
# File lib/rsgt/saved_game/statistics.rb, line 46 def songs_mastered_count json['NumSongsMastered'].to_i end
songs_played_count()
click to toggle source
# File lib/rsgt/saved_game/statistics.rb, line 42 def songs_played_count json['SongsPlayedCount'].to_i end
songs_rhythm_played_count()
click to toggle source
# File lib/rsgt/saved_game/statistics.rb, line 58 def songs_rhythm_played_count json['SongsRhythmPlayedCount'].to_i end