Class: MessageQuickly::Messaging::Attachment
- Defined in:
- lib/message_quickly/messaging/attachment.rb
Direct Known Subclasses
AudioAttachment, ImageAttachment, LocationAttachment, TemplateAttachment, VideoAttachment
Instance Attribute Summary collapse
-
#payload ⇒ Object
readonly
Returns the value of attribute payload.
-
#type ⇒ Object
readonly
Returns the value of attribute type.
Instance Method Summary collapse
Methods inherited from Base
Constructor Details
This class inherits a constructor from MessageQuickly::Messaging::Base
Instance Attribute Details
#payload ⇒ Object (readonly)
Returns the value of attribute payload.
5 6 7 |
# File 'lib/message_quickly/messaging/attachment.rb', line 5 def payload @payload end |
#type ⇒ Object (readonly)
Returns the value of attribute type.
5 6 7 |
# File 'lib/message_quickly/messaging/attachment.rb', line 5 def type @type end |
Instance Method Details
#file? ⇒ Boolean
7 8 9 |
# File 'lib/message_quickly/messaging/attachment.rb', line 7 def file? false end |
#to_hash ⇒ Object
11 12 13 |
# File 'lib/message_quickly/messaging/attachment.rb', line 11 def to_hash { type: type, payload: payload } end |