Class: Pinspec::SetupPlan

Inherits:
Data
  • Object
show all
Defined in:
lib/pinspec/types.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#bindingsObject (readonly)

Returns the value of attribute bindings

Returns:

  • (Object)

    the current value of bindings



146
147
148
# File 'lib/pinspec/types.rb', line 146

def bindings
  @bindings
end

#env_fingerprintObject (readonly)

Returns the value of attribute env_fingerprint

Returns:

  • (Object)

    the current value of env_fingerprint



146
147
148
# File 'lib/pinspec/types.rb', line 146

def env_fingerprint
  @env_fingerprint
end

#generationObject (readonly)

Returns the value of attribute generation

Returns:

  • (Object)

    the current value of generation



146
147
148
# File 'lib/pinspec/types.rb', line 146

def generation
  @generation
end

#isolationObject (readonly)

Returns the value of attribute isolation

Returns:

  • (Object)

    the current value of isolation



146
147
148
# File 'lib/pinspec/types.rb', line 146

def isolation
  @isolation
end

#notesObject (readonly)

Returns the value of attribute notes

Returns:

  • (Object)

    the current value of notes



146
147
148
# File 'lib/pinspec/types.rb', line 146

def notes
  @notes
end

#plan_idObject (readonly)

Returns the value of attribute plan_id

Returns:

  • (Object)

    the current value of plan_id



146
147
148
# File 'lib/pinspec/types.rb', line 146

def plan_id
  @plan_id
end

#stepsObject (readonly)

Returns the value of attribute steps

Returns:

  • (Object)

    the current value of steps



146
147
148
# File 'lib/pinspec/types.rb', line 146

def steps
  @steps
end

Instance Method Details

#binding_for(param_name) ⇒ Object



165
166
167
# File 'lib/pinspec/types.rb', line 165

def binding_for(param_name)
  bindings[param_name.to_sym]
end

#record_stepsObject



157
158
159
# File 'lib/pinspec/types.rb', line 157

def record_steps
  steps.select { |step| %i[create_record import_record].include?(step.kind) }
end

#refsObject



153
154
155
# File 'lib/pinspec/types.rb', line 153

def refs
  steps.filter_map(&:ref)
end

#steps_of(kind) ⇒ Object



149
150
151
# File 'lib/pinspec/types.rb', line 149

def steps_of(kind)
  steps.select { |step| step.kind == kind }
end

#subject_stepObject



161
162
163
# File 'lib/pinspec/types.rb', line 161

def subject_step
  steps.find { |step| step.kind == :construct_subject }
end