Sha256: 23f5a386cccc009afca0fe7e8e8a1d61d909d354082ac5bbd9c14c8620b0624d
Contents?: true
Size: 778 Bytes
Versions: 1
Compression:
Stored size: 778 Bytes
Contents
# ----------------------------------------------------------------------- # Copyright © 2012 ShepHertz Technologies Pvt Ltd. All rights reserved. # ----------------------------------------------------------------------- require 'App42Response.rb' # # # 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_SDK-0.8.3 | lib/game/Game.rb |