Class: Messenger::Templates::Generic
- Inherits:
-
Components::Attachment
- Object
- Components::Attachment
- Messenger::Templates::Generic
- Defined in:
- lib/messenger/components/templates/generic.rb
Constant Summary collapse
- ATTRIBUTES =
%w(template_type elements).freeze
Instance Method Summary collapse
-
#initialize(elements:) ⇒ Generic
constructor
A new instance of Generic.
Methods inherited from Components::Attachment
#all_attributes, #allowed_attribute?, #build, #build_elements, #payload
Constructor Details
#initialize(elements:) ⇒ Generic
Returns a new instance of Generic.
8 9 10 11 12 |
# File 'lib/messenger/components/templates/generic.rb', line 8 def initialize(elements:) @type = 'template' @template_type = 'generic' @elements = build_elements(elements) end |