Class: Synthra::Parser::AST::LatencyDirective
- Inherits:
-
DirectiveNode
- Object
- Node
- DirectiveNode
- Synthra::Parser::AST::LatencyDirective
- Defined in:
- lib/synthra/parser/ast.rb
Overview
Latency directive
Sets simulated response latency for a scenario.
Instance Attribute Summary collapse
-
#max_ms ⇒ Object
readonly
Returns the value of attribute max_ms.
-
#min_ms ⇒ Object
readonly
Returns the value of attribute min_ms.
Instance Method Summary collapse
-
#initialize(min_ms:, max_ms:, line: nil) ⇒ LatencyDirective
constructor
Create a new LatencyDirective.
Constructor Details
#initialize(min_ms:, max_ms:, line: nil) ⇒ LatencyDirective
Create a new LatencyDirective
1212 1213 1214 1215 1216 |
# File 'lib/synthra/parser/ast.rb', line 1212 def initialize(min_ms:, max_ms:, line: nil) super(line: line) @min_ms = min_ms @max_ms = max_ms end |
Instance Attribute Details
#max_ms ⇒ Object (readonly)
Returns the value of attribute max_ms.
1203 1204 1205 |
# File 'lib/synthra/parser/ast.rb', line 1203 def max_ms @max_ms end |
#min_ms ⇒ Object (readonly)
Returns the value of attribute min_ms.
1197 1198 1199 |
# File 'lib/synthra/parser/ast.rb', line 1197 def min_ms @min_ms end |