Class: Dependabot::GithubActions::WorkflowFile::NodeContext
- Inherits:
-
Object
- Object
- Dependabot::GithubActions::WorkflowFile::NodeContext
- Extended by:
- T::Sig
- Defined in:
- lib/dependabot/github_actions/workflow_file/node_context.rb
Instance Attribute Summary collapse
-
#key_node ⇒ Object
readonly
Returns the value of attribute key_node.
-
#mapping_node ⇒ Object
readonly
Returns the value of attribute mapping_node.
-
#node ⇒ Object
readonly
Returns the value of attribute node.
-
#sequence_item ⇒ Object
readonly
Returns the value of attribute sequence_item.
-
#sequence_item_index ⇒ Object
readonly
Returns the value of attribute sequence_item_index.
-
#steps_key_node ⇒ Object
readonly
Returns the value of attribute steps_key_node.
-
#steps_sequence ⇒ Object
readonly
Returns the value of attribute steps_sequence.
Instance Method Summary collapse
-
#initialize(node:, mapping_node:, key_node:, steps_sequence:, steps_key_node:, sequence_item:, sequence_item_index:) ⇒ NodeContext
constructor
A new instance of NodeContext.
Constructor Details
#initialize(node:, mapping_node:, key_node:, steps_sequence:, steps_key_node:, sequence_item:, sequence_item_index:) ⇒ NodeContext
Returns a new instance of NodeContext.
23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 |
# File 'lib/dependabot/github_actions/workflow_file/node_context.rb', line 23 def initialize( node:, mapping_node:, key_node:, steps_sequence:, steps_key_node:, sequence_item:, sequence_item_index: ) @node = node @mapping_node = mapping_node @key_node = key_node @steps_sequence = steps_sequence @steps_key_node = steps_key_node @sequence_item = sequence_item @sequence_item_index = sequence_item_index end |
Instance Attribute Details
#key_node ⇒ Object (readonly)
Returns the value of attribute key_node.
48 49 50 |
# File 'lib/dependabot/github_actions/workflow_file/node_context.rb', line 48 def key_node @key_node end |
#mapping_node ⇒ Object (readonly)
Returns the value of attribute mapping_node.
45 46 47 |
# File 'lib/dependabot/github_actions/workflow_file/node_context.rb', line 45 def mapping_node @mapping_node end |
#node ⇒ Object (readonly)
Returns the value of attribute node.
42 43 44 |
# File 'lib/dependabot/github_actions/workflow_file/node_context.rb', line 42 def node @node end |
#sequence_item ⇒ Object (readonly)
Returns the value of attribute sequence_item.
57 58 59 |
# File 'lib/dependabot/github_actions/workflow_file/node_context.rb', line 57 def sequence_item @sequence_item end |
#sequence_item_index ⇒ Object (readonly)
Returns the value of attribute sequence_item_index.
60 61 62 |
# File 'lib/dependabot/github_actions/workflow_file/node_context.rb', line 60 def sequence_item_index @sequence_item_index end |
#steps_key_node ⇒ Object (readonly)
Returns the value of attribute steps_key_node.
54 55 56 |
# File 'lib/dependabot/github_actions/workflow_file/node_context.rb', line 54 def steps_key_node @steps_key_node end |
#steps_sequence ⇒ Object (readonly)
Returns the value of attribute steps_sequence.
51 52 53 |
# File 'lib/dependabot/github_actions/workflow_file/node_context.rb', line 51 def steps_sequence @steps_sequence end |