Class: RightScale::RecipeInstantiation
- Includes:
- Serializable
- Defined in:
- lib/right_agent/core_payload_types/recipe_instantiation.rb
Overview
Recipe with json
Instance Attribute Summary collapse
-
#attributes ⇒ Object
(Hash) Recipe override attributes (JSON string for RightLink v5.0).
-
#external_inputs ⇒ Object
(Array of SecureDocumentLocation) attributes that must be resolved by the instance.
-
#id ⇒ Object
(Integer) Recipe id.
-
#input_flags ⇒ Object
(Hash) nil or Hash of input name to flags (array of string tokens) indicating additional boolean properties of the input which are useful to the instance.
-
#nickname ⇒ Object
(String) Recipe nickname.
-
#ready ⇒ Object
(Boolean) Whether recipe inputs are ready.
Instance Method Summary collapse
-
#initialize(*args) ⇒ RecipeInstantiation
constructor
A new instance of RecipeInstantiation.
-
#serialized_members ⇒ Object
Array of serialized fields given to constructor.
-
#title ⇒ String
Human readable title.
Methods included from Serializable
Constructor Details
#initialize(*args) ⇒ RecipeInstantiation
Returns a new instance of RecipeInstantiation.
51 52 53 54 55 56 57 58 |
# File 'lib/right_agent/core_payload_types/recipe_instantiation.rb', line 51 def initialize(*args) @nickname = args[0] if args.size > 0 @attributes = args[1] if args.size > 1 @id = args[2] if args.size > 2 @ready = args[3] if args.size > 3 @external_inputs = args[4] if args.size > 4 @input_flags = args[5] if args.size > 5 end |
Instance Attribute Details
#attributes ⇒ Object
(Hash) Recipe override attributes (JSON string for RightLink v5.0)
35 36 37 |
# File 'lib/right_agent/core_payload_types/recipe_instantiation.rb', line 35 def attributes @attributes end |
#external_inputs ⇒ Object
(Array of SecureDocumentLocation) attributes that must be resolved by the instance
44 45 46 |
# File 'lib/right_agent/core_payload_types/recipe_instantiation.rb', line 44 def external_inputs @external_inputs end |
#id ⇒ Object
(Integer) Recipe id
38 39 40 |
# File 'lib/right_agent/core_payload_types/recipe_instantiation.rb', line 38 def id @id end |
#input_flags ⇒ Object
(Hash) nil or Hash of input name to flags (array of string tokens) indicating additional boolean properties of the input which are useful to the instance. the presence of the flag means true, absence means false.
49 50 51 |
# File 'lib/right_agent/core_payload_types/recipe_instantiation.rb', line 49 def input_flags @input_flags end |
#nickname ⇒ Object
(String) Recipe nickname
32 33 34 |
# File 'lib/right_agent/core_payload_types/recipe_instantiation.rb', line 32 def nickname @nickname end |
#ready ⇒ Object
(Boolean) Whether recipe inputs are ready
41 42 43 |
# File 'lib/right_agent/core_payload_types/recipe_instantiation.rb', line 41 def ready @ready end |
Instance Method Details
#serialized_members ⇒ Object
Array of serialized fields given to constructor
61 62 63 |
# File 'lib/right_agent/core_payload_types/recipe_instantiation.rb', line 61 def serialized_members [ @nickname, @attributes, @id, @ready, @external_inputs, @input_flags ] end |
#title ⇒ String
Human readable title
Return
69 70 71 |
# File 'lib/right_agent/core_payload_types/recipe_instantiation.rb', line 69 def title nickname end |