Class: Pangea::Magma::Workspace::Requires

Inherits:
Struct
  • Object
show all
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

Instance Method Summary collapse

Instance Attribute Details

#featureObject

Returns the value of attribute feature

Returns:

  • (Object)

    the current value of feature



45
46
47
# File 'lib/pangea/magma/workspace.rb', line 45

def feature
  @feature
end

#input_formatObject

Returns the value of attribute input_format

Returns:

  • (Object)

    the current value of input_format



45
46
47
# File 'lib/pangea/magma/workspace.rb', line 45

def input_format
  @input_format
end

Instance Method Details

#empty?Boolean

Returns:

  • (Boolean)


50
51
52
# File 'lib/pangea/magma/workspace.rb', line 50

def empty?
  feature.nil? && input_format.nil?
end

#to_hObject



46
47
48
# File 'lib/pangea/magma/workspace.rb', line 46

def to_h
  { feature: feature, input_format: input_format }.compact
end