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



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

def bindings
  @bindings
end

#env_fingerprintObject (readonly)

Returns the value of attribute env_fingerprint

Returns:

  • (Object)

    the current value of env_fingerprint



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

def env_fingerprint
  @env_fingerprint
end

#generationObject (readonly)

Returns the value of attribute generation

Returns:

  • (Object)

    the current value of generation



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

def generation
  @generation
end

#isolationObject (readonly)

Returns the value of attribute isolation

Returns:

  • (Object)

    the current value of isolation



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

def isolation
  @isolation
end

#notesObject (readonly)

Returns the value of attribute notes

Returns:

  • (Object)

    the current value of notes



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

def notes
  @notes
end

#plan_idObject (readonly)

Returns the value of attribute plan_id

Returns:

  • (Object)

    the current value of plan_id



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

def plan_id
  @plan_id
end

#stepsObject (readonly)

Returns the value of attribute steps

Returns:

  • (Object)

    the current value of 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_stepsObject



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

#refsObject



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_stepObject



169
170
171
# File 'lib/pinspec/types.rb', line 169

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