Class: Sendly::WhatsAppTemplateDeletion
- Inherits:
-
Object
- Object
- Sendly::WhatsAppTemplateDeletion
- Defined in:
- lib/sendly/whatsapp_resource.rb
Overview
Confirmation that a template was deleted.
Instance Attribute Summary collapse
-
#deleted ⇒ Object
readonly
Returns the value of attribute deleted.
-
#id ⇒ Object
readonly
Returns the value of attribute id.
Instance Method Summary collapse
- #deleted? ⇒ Boolean
-
#initialize(data) ⇒ WhatsAppTemplateDeletion
constructor
A new instance of WhatsAppTemplateDeletion.
- #to_h ⇒ Object
Constructor Details
#initialize(data) ⇒ WhatsAppTemplateDeletion
Returns a new instance of WhatsAppTemplateDeletion.
190 191 192 193 |
# File 'lib/sendly/whatsapp_resource.rb', line 190 def initialize(data) @id = data["id"] @deleted = data["deleted"] || false end |
Instance Attribute Details
#deleted ⇒ Object (readonly)
Returns the value of attribute deleted.
188 189 190 |
# File 'lib/sendly/whatsapp_resource.rb', line 188 def deleted @deleted end |
#id ⇒ Object (readonly)
Returns the value of attribute id.
188 189 190 |
# File 'lib/sendly/whatsapp_resource.rb', line 188 def id @id end |
Instance Method Details
#deleted? ⇒ Boolean
195 196 197 |
# File 'lib/sendly/whatsapp_resource.rb', line 195 def deleted? deleted end |
#to_h ⇒ Object
199 200 201 |
# File 'lib/sendly/whatsapp_resource.rb', line 199 def to_h { id: id, deleted: deleted }.compact end |