Class: Vizcore::LayerCatalog::Capability
- Inherits:
-
Struct
- Object
- Struct
- Vizcore::LayerCatalog::Capability
- Defined in:
- lib/vizcore/layer_catalog.rb
Instance Attribute Summary collapse
-
#aliases ⇒ Object
Returns the value of attribute aliases.
-
#description ⇒ Object
Returns the value of attribute description.
-
#mappable_params ⇒ Object
Returns the value of attribute mappable_params.
-
#params ⇒ Object
Returns the value of attribute params.
-
#type ⇒ Object
Returns the value of attribute type.
Instance Method Summary collapse
Instance Attribute Details
#aliases ⇒ Object
Returns the value of attribute aliases
6 7 8 |
# File 'lib/vizcore/layer_catalog.rb', line 6 def aliases @aliases end |
#description ⇒ Object
Returns the value of attribute description
6 7 8 |
# File 'lib/vizcore/layer_catalog.rb', line 6 def description @description end |
#mappable_params ⇒ Object
Returns the value of attribute mappable_params
6 7 8 |
# File 'lib/vizcore/layer_catalog.rb', line 6 def mappable_params @mappable_params end |
#params ⇒ Object
Returns the value of attribute params
6 7 8 |
# File 'lib/vizcore/layer_catalog.rb', line 6 def params @params end |
#type ⇒ Object
Returns the value of attribute type
6 7 8 |
# File 'lib/vizcore/layer_catalog.rb', line 6 def type @type end |
Instance Method Details
#supports?(value) ⇒ 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 |
#types ⇒ Object
7 8 9 |
# File 'lib/vizcore/layer_catalog.rb', line 7 def types [type, *aliases].map(&:to_sym) end |