Class: MonkeyAction

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

Overview

MonkeyAction.

Instance Attribute Summary collapse

Attributes inherited from Action

#action_completed, #action_time, #value, #weight

Instance Method Summary collapse

Methods inherited from Action

#action_completed?

Constructor Details

#initialize(monkey, value, weight) ⇒ MonkeyAction

Returns a new instance of MonkeyAction.



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

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

  @monkey = monkey
end

Instance Attribute Details

#monkeyObject (readonly)

Returns the value of attribute monkey.



7
8
9
# File 'lib/MonkeyAction/monkey_action.rb', line 7

def monkey
  @monkey
end