Class: Pangea::Magma::Workspace::Requires
- Defined in:
- lib/pangea/magma/workspace.rb
Overview
Typed requirements — checked at orchestration build time via Pangea::Backend.verify_compatible! against the chosen backend.
Instance Attribute Summary collapse
-
#feature ⇒ Object
Returns the value of attribute feature.
-
#input_format ⇒ Object
Returns the value of attribute input_format.
Instance Method Summary collapse
Instance Attribute Details
#feature ⇒ Object
Returns the value of attribute feature
45 46 47 |
# File 'lib/pangea/magma/workspace.rb', line 45 def feature @feature end |
#input_format ⇒ Object
Returns the value of attribute input_format
45 46 47 |
# File 'lib/pangea/magma/workspace.rb', line 45 def input_format @input_format end |
Instance Method Details
#empty? ⇒ Boolean
50 51 52 |
# File 'lib/pangea/magma/workspace.rb', line 50 def empty? feature.nil? && input_format.nil? end |
#to_h ⇒ Object
46 47 48 |
# File 'lib/pangea/magma/workspace.rb', line 46 def to_h { feature: feature, input_format: input_format }.compact end |