Class: MonkeyAction

Inherits:
Action show all
Defined in:
lib/MonkeyAction/monkey_action.rb

Overview

MonkeyAction.

Instance Attribute Summary collapse

Attributes inherited from Action

#action_time, #value, #weight

Instance Method Summary collapse

Methods inherited from Action

#action_completed=, #action_completed?

Constructor Details

#initialize(monkey, value, weight) ⇒ MonkeyAction

Returns a new instance of MonkeyAction.



7
8
9
10
11
12
13
# File 'lib/MonkeyAction/monkey_action.rb', line 7

def initialize(monkey, value, weight)
  super value, weight

  @monkey = monkey

  self
end

Instance Attribute Details

#monkeyObject (readonly)

Returns the value of attribute monkey.



5
6
7
# File 'lib/MonkeyAction/monkey_action.rb', line 5

def monkey
  @monkey
end