Class: Synthra::Parser::AST::StatusDirective
- Inherits:
-
DirectiveNode
- Object
- Node
- DirectiveNode
- Synthra::Parser::AST::StatusDirective
- Defined in:
- lib/synthra/parser/ast.rb
Overview
Status directive
Sets the HTTP status code for a scenario.
Instance Attribute Summary collapse
-
#status_code ⇒ Object
readonly
Returns the value of attribute status_code.
Instance Method Summary collapse
-
#initialize(status_code:, line: nil) ⇒ StatusDirective
constructor
Create a new StatusDirective.
Constructor Details
#initialize(status_code:, line: nil) ⇒ StatusDirective
Create a new StatusDirective
1149 1150 1151 1152 |
# File 'lib/synthra/parser/ast.rb', line 1149 def initialize(status_code:, line: nil) super(line: line) @status_code = status_code end |
Instance Attribute Details
#status_code ⇒ Object (readonly)
Returns the value of attribute status_code.
1141 1142 1143 |
# File 'lib/synthra/parser/ast.rb', line 1141 def status_code @status_code end |