Sha256: f6fb31c164f27678f22c9bdd01f9354dcd62a77529f3534323f564c7d210172f
Contents?: true
Size: 790 Bytes
Versions: 1
Compression:
Stored size: 790 Bytes
Contents
# ----------------------------------------------------------------------- # Copyright © 2012 ShepHertz Technologies Pvt Ltd. All rights reserved. # ----------------------------------------------------------------------- require 'App42_Ruby_API/App42Response' # # # This Game object is the value object which contains the properties of Game. # # module App42 module Game class Game < App42Response attr_accessor :name, :scoreList @name @scoreList = Array.new end class Score attr_accessor :userName, :rank, :value, :createdOn @userName @rank @value @createdOn # # This is a constructor that takes no parameter # def initialize(game) game.scoreList.push(self) end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
App42_Ruby_API-0.8.4 | lib/game/Game.rb |