Class: Pangea::Magma::Workspace::Slot
- Defined in:
- lib/pangea/magma/workspace.rb
Overview
Typed slot — input or output declaration.
Instance Attribute Summary collapse
-
#default ⇒ Object
Returns the value of attribute default.
-
#description ⇒ Object
Returns the value of attribute description.
-
#name ⇒ Object
Returns the value of attribute name.
-
#sensitive ⇒ Object
Returns the value of attribute sensitive.
-
#type ⇒ Object
Returns the value of attribute type.
Instance Method Summary collapse
Instance Attribute Details
#default ⇒ Object
Returns the value of attribute default
34 35 36 |
# File 'lib/pangea/magma/workspace.rb', line 34 def default @default end |
#description ⇒ Object
Returns the value of attribute description
34 35 36 |
# File 'lib/pangea/magma/workspace.rb', line 34 def description @description end |
#name ⇒ Object
Returns the value of attribute name
34 35 36 |
# File 'lib/pangea/magma/workspace.rb', line 34 def name @name end |
#sensitive ⇒ Object
Returns the value of attribute sensitive
34 35 36 |
# File 'lib/pangea/magma/workspace.rb', line 34 def sensitive @sensitive end |
#type ⇒ Object
Returns the value of attribute type
34 35 36 |
# File 'lib/pangea/magma/workspace.rb', line 34 def type @type end |
Instance Method Details
#to_h ⇒ Object
36 37 38 39 40 |
# File 'lib/pangea/magma/workspace.rb', line 36 def to_h { name: name, type: type.to_s, default: default, sensitive: sensitive, description: description }.compact end |