class Mandrill::Metadata
- Mandrill::Metadata
- Reference
- Object
Defined in:
mandrill/api.crConstructors
Instance Method Summary
-
#add(name, view_template = nil)
Add a new custom metadata field to be indexed for the account.
-
#delete(name)
Delete an existing custom metadata field.
-
#list
Get the list of custom metadata fields indexed for the account.
-
#update(name, view_template)
Update an existing custom metadata field.
Constructor Detail
Instance Method Detail
Add a new custom metadata field to be indexed for the account. @param [String] name a unique identifier for the metadata field @param [String] view_template optional Mustache template to control how the metadata is rendered in your activity log @return [Hash] the information saved about the new metadata field
- [String] name the unique identifier of the metadata field to update
- [String] state the current state of the metadata field, one of "active", "delete", or "index"
- [String] view_template Mustache template to control how the metadata is rendered in your activity log
Delete an existing custom metadata field. Deletion isn't instataneous, and /metadata/list will continue to return the field until the asynchronous deletion process is complete. @param [String] name the unique identifier of the metadata field to update @return [Hash] the information for the deleted metadata field
- [String] name the unique identifier of the metadata field to update
- [String] state the current state of the metadata field, one of "active", "delete", or "index"
- [String] view_template Mustache template to control how the metadata is rendered in your activity log
Get the list of custom metadata fields indexed for the account. @return [Array] the custom metadata fields for the account
- [Hash] return[] the individual custom metadata field info
- [String] name the unique identifier of the metadata field to update
- [String] state the current state of the metadata field, one of "active", "delete", or "index"
- [String] view_template Mustache template to control how the metadata is rendered in your activity log
Update an existing custom metadata field. @param [String] name the unique identifier of the metadata field to update @param [String] view_template optional Mustache template to control how the metadata is rendered in your activity log @return [Hash] the information for the updated metadata field
- [String] name the unique identifier of the metadata field to update
- [String] state the current state of the metadata field, one of "active", "delete", or "index"
- [String] view_template Mustache template to control how the metadata is rendered in your activity log