Class: LittleGhost::AssemblyDefinition
- Inherits:
-
Data
- Object
- Data
- LittleGhost::AssemblyDefinition
- Defined in:
- lib/little_ghost/assembly_builder.rb
Overview
An immutable, executable snapshot produced by an AssemblyBuilder.
Instance Attribute Summary collapse
-
#assembly_id ⇒ Object
readonly
Returns the value of attribute assembly_id.
-
#description ⇒ Object
readonly
Returns the value of attribute description.
-
#implementation ⇒ Object
readonly
Returns the value of attribute implementation.
-
#kind ⇒ Object
readonly
Returns the value of attribute kind.
Instance Method Summary collapse
-
#initialize(kind:, assembly_id:, description:, implementation:) ⇒ AssemblyDefinition
constructor
A new instance of AssemblyDefinition.
Constructor Details
#initialize(kind:, assembly_id:, description:, implementation:) ⇒ AssemblyDefinition
Returns a new instance of AssemblyDefinition.
6 7 8 9 10 11 12 13 |
# File 'lib/little_ghost/assembly_builder.rb', line 6 def initialize(kind:, assembly_id:, description:, implementation:) super( kind: kind.to_sym, assembly_id: assembly_id.to_s.dup.freeze, description: description.to_s.dup.freeze, implementation: ) end |
Instance Attribute Details
#assembly_id ⇒ Object (readonly)
Returns the value of attribute assembly_id
5 6 7 |
# File 'lib/little_ghost/assembly_builder.rb', line 5 def assembly_id @assembly_id end |
#description ⇒ Object (readonly)
Returns the value of attribute description
5 6 7 |
# File 'lib/little_ghost/assembly_builder.rb', line 5 def description @description end |
#implementation ⇒ Object (readonly)
Returns the value of attribute implementation
5 6 7 |
# File 'lib/little_ghost/assembly_builder.rb', line 5 def implementation @implementation end |
#kind ⇒ Object (readonly)
Returns the value of attribute kind
5 6 7 |
# File 'lib/little_ghost/assembly_builder.rb', line 5 def kind @kind end |