Class: Spielbash::Context

Inherits:
Object
  • Object
show all
Defined in:
lib/spielbash/model/context.rb

Direct Known Subclasses

ActionContext

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(typinig_delay_s, reading_delay_s, wait, width, height, wait_check_cmd = nil) ⇒ Context

Returns a new instance of Context.



5
6
7
8
9
10
11
12
# File 'lib/spielbash/model/context.rb', line 5

def initialize(typinig_delay_s, reading_delay_s, wait, width, height, wait_check_cmd = nil)
  @typing_delay_s = typinig_delay_s
  @reading_delay_s = reading_delay_s
  @wait = wait
  @width = width
  @height = height
  @wait_check_cmd = wait_check_cmd
end

Instance Attribute Details

#heightObject

Returns the value of attribute height.



3
4
5
# File 'lib/spielbash/model/context.rb', line 3

def height
  @height
end

#reading_delay_sObject

Returns the value of attribute reading_delay_s.



3
4
5
# File 'lib/spielbash/model/context.rb', line 3

def reading_delay_s
  @reading_delay_s
end

#typing_delay_sObject

Returns the value of attribute typing_delay_s.



3
4
5
# File 'lib/spielbash/model/context.rb', line 3

def typing_delay_s
  @typing_delay_s
end

#waitObject

Returns the value of attribute wait.



3
4
5
# File 'lib/spielbash/model/context.rb', line 3

def wait
  @wait
end

#wait_check_cmdObject

Returns the value of attribute wait_check_cmd.



3
4
5
# File 'lib/spielbash/model/context.rb', line 3

def wait_check_cmd
  @wait_check_cmd
end

#widthObject

Returns the value of attribute width.



3
4
5
# File 'lib/spielbash/model/context.rb', line 3

def width
  @width
end