Class: GameRocket::AchievementTemplate

Inherits:
Object
  • Object
show all
Includes:
BaseModule
Defined in:
lib/gamerocket/achievement_template.rb

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Methods included from BaseModule

included

Methods included from BaseModule::Methods

#copy_instance_variables_from_object, #return_object_or_raise, #set_instance_variables_from_hash, #singleton_class

Constructor Details

#initialize(attributes) ⇒ AchievementTemplate

Returns a new instance of AchievementTemplate.



7
8
9
# File 'lib/gamerocket/achievement_template.rb', line 7

def initialize(attributes)
  set_instance_variables_from_hash(attributes)
end

Instance Attribute Details

#descriptionObject

Returns the value of attribute description.



5
6
7
# File 'lib/gamerocket/achievement_template.rb', line 5

def description
  @description
end

#dynPropObject

Returns the value of attribute dynProp.



5
6
7
# File 'lib/gamerocket/achievement_template.rb', line 5

def dynProp
  @dynProp
end

#goalObject

Returns the value of attribute goal.



5
6
7
# File 'lib/gamerocket/achievement_template.rb', line 5

def goal
  @goal
end

#idObject

Returns the value of attribute id.



5
6
7
# File 'lib/gamerocket/achievement_template.rb', line 5

def id
  @id
end

#imageObject

Returns the value of attribute image.



5
6
7
# File 'lib/gamerocket/achievement_template.rb', line 5

def image
  @image
end

#nameObject

Returns the value of attribute name.



5
6
7
# File 'lib/gamerocket/achievement_template.rb', line 5

def name
  @name
end

#pointsObject

Returns the value of attribute points.



5
6
7
# File 'lib/gamerocket/achievement_template.rb', line 5

def points
  @points
end

#refObject

Returns the value of attribute ref.



5
6
7
# File 'lib/gamerocket/achievement_template.rb', line 5

def ref
  @ref
end

Class Method Details

._new(*args) ⇒ Object



11
12
13
# File 'lib/gamerocket/achievement_template.rb', line 11

def self._new(*args)
  self.new *args
end