Module: Serega::SeregaPlugins::Metadata::ClassMethods
- Defined in:
- lib/serega/plugins/metadata/metadata.rb
Instance Method Summary collapse
-
#meta_attribute(*path, **opts, &block) ⇒ MetadataAttribute
Adds metadata to response.
-
#meta_attributes ⇒ Array
List of added metadata attributes.
Instance Method Details
#meta_attribute(*path, **opts, &block) ⇒ MetadataAttribute
Adds metadata to response
101 102 103 104 |
# File 'lib/serega/plugins/metadata/metadata.rb', line 101 def (*path, **opts, &block) attribute = self::MetaAttribute.new(path: path, opts: opts, block: block) [attribute.name] = attribute end |
#meta_attributes ⇒ Array
List of added metadata attributes
78 79 80 |
# File 'lib/serega/plugins/metadata/metadata.rb', line 78 def @meta_attributes ||= {} end |