Class: Kumi::Core::Analyzer::Passes::InputCollector::Node

Inherits:
Struct
  • Object
show all
Defined in:
lib/kumi/core/analyzer/passes/input_collector.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#access_modeObject

Returns the value of attribute access_mode

Returns:

  • (Object)

    the current value of access_mode



8
9
10
# File 'lib/kumi/core/analyzer/passes/input_collector.rb', line 8

def access_mode
  @access_mode
end

#child_stepsObject

Returns the value of attribute child_steps

Returns:

  • (Object)

    the current value of child_steps



8
9
10
# File 'lib/kumi/core/analyzer/passes/input_collector.rb', line 8

def child_steps
  @child_steps
end

#childrenObject

Returns the value of attribute children

Returns:

  • (Object)

    the current value of children



8
9
10
# File 'lib/kumi/core/analyzer/passes/input_collector.rb', line 8

def children
  @children
end

#containerObject

Returns the value of attribute container

Returns:

  • (Object)

    the current value of container



8
9
10
# File 'lib/kumi/core/analyzer/passes/input_collector.rb', line 8

def container
  @container
end

#define_indexObject

Returns the value of attribute define_index

Returns:

  • (Object)

    the current value of define_index



8
9
10
# File 'lib/kumi/core/analyzer/passes/input_collector.rb', line 8

def define_index
  @define_index
end

#domainObject

Returns the value of attribute domain

Returns:

  • (Object)

    the current value of domain



8
9
10
# File 'lib/kumi/core/analyzer/passes/input_collector.rb', line 8

def domain
  @domain
end

#typeObject

Returns the value of attribute type

Returns:

  • (Object)

    the current value of type



8
9
10
# File 'lib/kumi/core/analyzer/passes/input_collector.rb', line 8

def type
  @type
end

Instance Method Details

#as_jsonObject



9
10
11
12
13
14
15
16
17
18
19
# File 'lib/kumi/core/analyzer/passes/input_collector.rb', line 9

def as_json(*)
  {
    type: type,
    domain: domain,
    container: container,
    children: children&.transform_values(&:as_json),
    access_mode: access_mode,
    child_steps: child_steps,
    define_index: define_index
  }
end

#to_json(*args) ⇒ Object



21
22
23
# File 'lib/kumi/core/analyzer/passes/input_collector.rb', line 21

def to_json(*args)
  as_json.to_json(*args)
end