Class: Pinspec::SetupPlan
- Inherits:
-
Data
- Object
- Data
- Pinspec::SetupPlan
- Defined in:
- lib/pinspec/types.rb
Instance Attribute Summary collapse
-
#bindings ⇒ Object
readonly
Returns the value of attribute bindings.
-
#env_fingerprint ⇒ Object
readonly
Returns the value of attribute env_fingerprint.
-
#generation ⇒ Object
readonly
Returns the value of attribute generation.
-
#isolation ⇒ Object
readonly
Returns the value of attribute isolation.
-
#notes ⇒ Object
readonly
Returns the value of attribute notes.
-
#plan_id ⇒ Object
readonly
Returns the value of attribute plan_id.
-
#steps ⇒ Object
readonly
Returns the value of attribute steps.
Instance Method Summary collapse
- #binding_for(param_name) ⇒ Object
- #record_steps ⇒ Object
- #refs ⇒ Object
- #steps_of(kind) ⇒ Object
- #subject_step ⇒ Object
Instance Attribute Details
#bindings ⇒ Object (readonly)
Returns the value of attribute bindings
154 155 156 |
# File 'lib/pinspec/types.rb', line 154 def bindings @bindings end |
#env_fingerprint ⇒ Object (readonly)
Returns the value of attribute env_fingerprint
154 155 156 |
# File 'lib/pinspec/types.rb', line 154 def env_fingerprint @env_fingerprint end |
#generation ⇒ Object (readonly)
Returns the value of attribute generation
154 155 156 |
# File 'lib/pinspec/types.rb', line 154 def generation @generation end |
#isolation ⇒ Object (readonly)
Returns the value of attribute isolation
154 155 156 |
# File 'lib/pinspec/types.rb', line 154 def isolation @isolation end |
#notes ⇒ Object (readonly)
Returns the value of attribute notes
154 155 156 |
# File 'lib/pinspec/types.rb', line 154 def notes @notes end |
#plan_id ⇒ Object (readonly)
Returns the value of attribute plan_id
154 155 156 |
# File 'lib/pinspec/types.rb', line 154 def plan_id @plan_id end |
#steps ⇒ Object (readonly)
Returns the value of attribute steps
154 155 156 |
# File 'lib/pinspec/types.rb', line 154 def steps @steps end |
Instance Method Details
#binding_for(param_name) ⇒ Object
173 174 175 |
# File 'lib/pinspec/types.rb', line 173 def binding_for(param_name) bindings[param_name.to_sym] end |
#record_steps ⇒ Object
165 166 167 |
# File 'lib/pinspec/types.rb', line 165 def record_steps steps.select { |step| %i[create_record import_record].include?(step.kind) } end |
#refs ⇒ Object
161 162 163 |
# File 'lib/pinspec/types.rb', line 161 def refs steps.filter_map(&:ref) end |
#steps_of(kind) ⇒ Object
157 158 159 |
# File 'lib/pinspec/types.rb', line 157 def steps_of(kind) steps.select { |step| step.kind == kind } end |
#subject_step ⇒ Object
169 170 171 |
# File 'lib/pinspec/types.rb', line 169 def subject_step steps.find { |step| step.kind == :construct_subject } end |