Class: Pangea::CLI::Reactivity::Ask

Inherits:
Struct
  • Object
show all
Defined in:
lib/pangea/cli/reactivity.rb

Overview

A single typed ask declared in a workspace’s pangea.yml.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Attribute Details

#bindObject

Returns the value of attribute bind

Returns:

  • (Object)

    the current value of bind



27
28
29
# File 'lib/pangea/cli/reactivity.rb', line 27

def bind
  @bind
end

#layerObject

Returns the value of attribute layer

Returns:

  • (Object)

    the current value of layer



27
28
29
# File 'lib/pangea/cli/reactivity.rb', line 27

def layer
  @layer
end

#outputObject

Returns the value of attribute output

Returns:

  • (Object)

    the current value of output



27
28
29
# File 'lib/pangea/cli/reactivity.rb', line 27

def output
  @output
end

#workspaceObject

Returns the value of attribute workspace

Returns:

  • (Object)

    the current value of workspace



27
28
29
# File 'lib/pangea/cli/reactivity.rb', line 27

def workspace
  @workspace
end

Class Method Details

.from_h(h) ⇒ Object



28
29
30
31
32
33
34
35
# File 'lib/pangea/cli/reactivity.rb', line 28

def self.from_h(h)
  new(
    layer: h.fetch('layer'),
    workspace: h.fetch('workspace'),
    output: h.fetch('output'),
    bind: h.fetch('bind'),
  )
end