Class: MessageQuickly::Messaging::TemplateAttachment

Inherits:
Attachment
  • Object
show all
Defined in:
lib/message_quickly/messaging/template_attachment.rb

Instance Attribute Summary collapse

Attributes inherited from Attachment

#payload, #type

Instance Method Summary collapse

Methods inherited from Attachment

#file?, #to_hash

Constructor Details

#initialize(params = {}) ⇒ TemplateAttachment

Returns a new instance of TemplateAttachment.



7
8
9
10
# File 'lib/message_quickly/messaging/template_attachment.rb', line 7

def initialize(params = {})
  params['type'] ||= 'template'
  super(params)
end

Instance Attribute Details

#template_typeObject

Returns the value of attribute template_type.



5
6
7
# File 'lib/message_quickly/messaging/template_attachment.rb', line 5

def template_type
  @template_type
end