Class: SparkleFormation::Resources::Property

Inherits:
Struct
  • Object
show all
Defined in:
lib/sparkle_formation/resources.rb

Overview

Defines a resource property

Instance Attribute Summary collapse

Instance Attribute Details

#conditionalsObject

Returns the value of attribute conditionals

Returns:

  • (Object)

    the current value of conditionals



53
54
55
# File 'lib/sparkle_formation/resources.rb', line 53

def conditionals
  @conditionals
end

#descriptionObject

Returns the value of attribute description

Returns:

  • (Object)

    the current value of description



53
54
55
# File 'lib/sparkle_formation/resources.rb', line 53

def description
  @description
end

#nameObject

Returns the value of attribute name

Returns:

  • (Object)

    the current value of name



53
54
55
# File 'lib/sparkle_formation/resources.rb', line 53

def name
  @name
end

#requiredObject

Returns the value of attribute required

Returns:

  • (Object)

    the current value of required



53
54
55
# File 'lib/sparkle_formation/resources.rb', line 53

def required
  @required
end

#typeObject

Returns the value of attribute type

Returns:

  • (Object)

    the current value of type



53
54
55
# File 'lib/sparkle_formation/resources.rb', line 53

def type
  @type
end

#update_causes(final_resource = nil, original_resource = nil) ⇒ 'replacement', ...

Determine result of property update

Parameters:

  • final_resource (Hash) (defaults to: nil)

    desired resource structure containing this property

Returns:

  • ('replacement', 'interrupt', 'unknown', 'none')


53
54
55
# File 'lib/sparkle_formation/resources.rb', line 53

def update_causes
  @update_causes
end