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
76 77 78 79 |
# File 'lib/serega/plugins/metadata/metadata.rb', line 76 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
53 54 55 |
# File 'lib/serega/plugins/metadata/metadata.rb', line 53 def @meta_attributes ||= {} end |