Class: Aws::Templates::Utils::Contextualized::Filter::RecursiveSchemaFilter

Inherits:
Aws::Templates::Utils::Contextualized::Filter show all
Defined in:
lib/aws/templates/utils/contextualized/filter/recursive_schema_filter.rb

Overview

Base class for recursive operations

Internally used by Add and Remove filters.

Direct Known Subclasses

Add, Remove

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods inherited from Aws::Templates::Utils::Contextualized::Filter

#&, #filter, #to_filter, #to_proc

Constructor Details

#initialize(*args) ⇒ RecursiveSchemaFilter

Returns a new instance of RecursiveSchemaFilter.



17
18
19
20
21
22
23
24
25
26
27
28
# File 'lib/aws/templates/utils/contextualized/filter/recursive_schema_filter.rb', line 17

def initialize(*args)
  schm = if args.last.respond_to?(:to_hash)
    args.each_with_object(args.pop) do |field, hsh|
      hsh[field] = nil
      hsh
    end
  else
    args
  end

  @scheme = _check_scheme(schm)
end

Instance Attribute Details

#schemeObject (readonly)

Returns the value of attribute scheme.



15
16
17
# File 'lib/aws/templates/utils/contextualized/filter/recursive_schema_filter.rb', line 15

def scheme
  @scheme
end