Class: IActionable::Objects::Challenge

Inherits:
IActionableObject show all
Defined in:
lib/riaction/iactionable/objects/challenge.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods inherited from IActionableObject

timestamp_regexp, timestamp_to_seconds

Constructor Details

#initialize(key_values = {}) ⇒ Challenge

Returns a new instance of Challenge.



12
13
14
15
# File 'lib/riaction/iactionable/objects/challenge.rb', line 12

def initialize(key_values={})
  initialize_awardable(key_values)
  super(key_values)
end

Instance Attribute Details

#descriptionObject

Returns the value of attribute description.



9
10
11
# File 'lib/riaction/iactionable/objects/challenge.rb', line 9

def description
  @description
end

#keyObject

Returns the value of attribute key.



8
9
10
# File 'lib/riaction/iactionable/objects/challenge.rb', line 8

def key
  @key
end

#nameObject

Returns the value of attribute name.



10
11
12
# File 'lib/riaction/iactionable/objects/challenge.rb', line 10

def name
  @name
end