Class: Vizcore::LayerCatalog::Capability

Inherits:
Struct
  • Object
show all
Defined in:
lib/vizcore/layer_catalog.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#aliasesObject

Returns the value of attribute aliases

Returns:

  • (Object)

    the current value of aliases



6
7
8
# File 'lib/vizcore/layer_catalog.rb', line 6

def aliases
  @aliases
end

#descriptionObject

Returns the value of attribute description

Returns:

  • (Object)

    the current value of description



6
7
8
# File 'lib/vizcore/layer_catalog.rb', line 6

def description
  @description
end

#mappable_paramsObject

Returns the value of attribute mappable_params

Returns:

  • (Object)

    the current value of mappable_params



6
7
8
# File 'lib/vizcore/layer_catalog.rb', line 6

def mappable_params
  @mappable_params
end

#paramsObject

Returns the value of attribute params

Returns:

  • (Object)

    the current value of params



6
7
8
# File 'lib/vizcore/layer_catalog.rb', line 6

def params
  @params
end

#typeObject

Returns the value of attribute type

Returns:

  • (Object)

    the current value of type



6
7
8
# File 'lib/vizcore/layer_catalog.rb', line 6

def type
  @type
end

Instance Method Details

#supports?(value) ⇒ Boolean

Returns:

  • (Boolean)


11
12
13
14
15
# File 'lib/vizcore/layer_catalog.rb', line 11

def supports?(value)
  types.include?(value.to_sym)
rescue StandardError
  false
end

#typesObject



7
8
9
# File 'lib/vizcore/layer_catalog.rb', line 7

def types
  [type, *aliases].map(&:to_sym)
end