class Spielbash::PauseAction

Attributes

length[RW]

Public Class Methods

new(length, action_context) click to toggle source
Calls superclass method Spielbash::BaseAction::new
# File lib/spielbash/model/action/pause_action.rb, line 5
def initialize(length, action_context)
  super(action_context)
  @length = length
end

Public Instance Methods

execute(_session) click to toggle source
# File lib/spielbash/model/action/pause_action.rb, line 10
def execute(_session)
  sleep(length)
end