Class: Spielbash::Context
- Inherits:
-
Object
- Object
- Spielbash::Context
- Defined in:
- lib/spielbash/model/context.rb
Direct Known Subclasses
Instance Attribute Summary collapse
-
#height ⇒ Object
Returns the value of attribute height.
-
#reading_delay_s ⇒ Object
Returns the value of attribute reading_delay_s.
-
#typing_delay_s ⇒ Object
Returns the value of attribute typing_delay_s.
-
#wait ⇒ Object
Returns the value of attribute wait.
-
#wait_check_cmd ⇒ Object
Returns the value of attribute wait_check_cmd.
-
#width ⇒ Object
Returns the value of attribute width.
Instance Method Summary collapse
-
#initialize(typinig_delay_s, reading_delay_s, wait, width, height, wait_check_cmd = nil) ⇒ Context
constructor
A new instance of Context.
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
#height ⇒ Object
Returns the value of attribute height.
3 4 5 |
# File 'lib/spielbash/model/context.rb', line 3 def height @height end |
#reading_delay_s ⇒ Object
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_s ⇒ Object
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 |
#wait ⇒ Object
Returns the value of attribute wait.
3 4 5 |
# File 'lib/spielbash/model/context.rb', line 3 def wait @wait end |
#wait_check_cmd ⇒ Object
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 |
#width ⇒ Object
Returns the value of attribute width.
3 4 5 |
# File 'lib/spielbash/model/context.rb', line 3 def width @width end |