Class: Sendly::WebhookVerificationData
- Inherits:
-
Object
- Object
- Sendly::WebhookVerificationData
- Defined in:
- lib/sendly/webhooks.rb
Instance Attribute Summary collapse
-
#app_name ⇒ Object
readonly
Returns the value of attribute app_name.
-
#attempts ⇒ Object
readonly
Returns the value of attribute attempts.
-
#created_at ⇒ Object
readonly
Returns the value of attribute created_at.
-
#delivery_status ⇒ Object
readonly
Returns the value of attribute delivery_status.
-
#expires_at ⇒ Object
readonly
Returns the value of attribute expires_at.
-
#id ⇒ Object
readonly
Returns the value of attribute id.
-
#max_attempts ⇒ Object
readonly
Returns the value of attribute max_attempts.
-
#metadata ⇒ Object
readonly
Returns the value of attribute metadata.
-
#organization_id ⇒ Object
readonly
Returns the value of attribute organization_id.
-
#phone ⇒ Object
readonly
Returns the value of attribute phone.
-
#profile_id ⇒ Object
readonly
Returns the value of attribute profile_id.
-
#status ⇒ Object
readonly
Returns the value of attribute status.
-
#template_id ⇒ Object
readonly
Returns the value of attribute template_id.
-
#verified_at ⇒ Object
readonly
Returns the value of attribute verified_at.
Instance Method Summary collapse
-
#initialize(data = {}) ⇒ WebhookVerificationData
constructor
A new instance of WebhookVerificationData.
Constructor Details
#initialize(data = {}) ⇒ WebhookVerificationData
Returns a new instance of WebhookVerificationData.
234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 |
# File 'lib/sendly/webhooks.rb', line 234 def initialize(data = {}) @id = data["id"] @organization_id = data["organization_id"] @phone = data["phone"] @status = data["status"] @delivery_status = data["delivery_status"] || "queued" @attempts = data["attempts"] || 0 @max_attempts = data["max_attempts"] || 3 @expires_at = data["expires_at"] @verified_at = data["verified_at"] @created_at = data["created_at"] @app_name = data["app_name"] @template_id = data["template_id"] @profile_id = data["profile_id"] @metadata = data["metadata"] end |
Instance Attribute Details
#app_name ⇒ Object (readonly)
Returns the value of attribute app_name.
230 231 232 |
# File 'lib/sendly/webhooks.rb', line 230 def app_name @app_name end |
#attempts ⇒ Object (readonly)
Returns the value of attribute attempts.
230 231 232 |
# File 'lib/sendly/webhooks.rb', line 230 def attempts @attempts end |
#created_at ⇒ Object (readonly)
Returns the value of attribute created_at.
230 231 232 |
# File 'lib/sendly/webhooks.rb', line 230 def created_at @created_at end |
#delivery_status ⇒ Object (readonly)
Returns the value of attribute delivery_status.
230 231 232 |
# File 'lib/sendly/webhooks.rb', line 230 def delivery_status @delivery_status end |
#expires_at ⇒ Object (readonly)
Returns the value of attribute expires_at.
230 231 232 |
# File 'lib/sendly/webhooks.rb', line 230 def expires_at @expires_at end |
#id ⇒ Object (readonly)
Returns the value of attribute id.
230 231 232 |
# File 'lib/sendly/webhooks.rb', line 230 def id @id end |
#max_attempts ⇒ Object (readonly)
Returns the value of attribute max_attempts.
230 231 232 |
# File 'lib/sendly/webhooks.rb', line 230 def max_attempts @max_attempts end |
#metadata ⇒ Object (readonly)
Returns the value of attribute metadata.
230 231 232 |
# File 'lib/sendly/webhooks.rb', line 230 def @metadata end |
#organization_id ⇒ Object (readonly)
Returns the value of attribute organization_id.
230 231 232 |
# File 'lib/sendly/webhooks.rb', line 230 def organization_id @organization_id end |
#phone ⇒ Object (readonly)
Returns the value of attribute phone.
230 231 232 |
# File 'lib/sendly/webhooks.rb', line 230 def phone @phone end |
#profile_id ⇒ Object (readonly)
Returns the value of attribute profile_id.
230 231 232 |
# File 'lib/sendly/webhooks.rb', line 230 def profile_id @profile_id end |
#status ⇒ Object (readonly)
Returns the value of attribute status.
230 231 232 |
# File 'lib/sendly/webhooks.rb', line 230 def status @status end |
#template_id ⇒ Object (readonly)
Returns the value of attribute template_id.
230 231 232 |
# File 'lib/sendly/webhooks.rb', line 230 def template_id @template_id end |
#verified_at ⇒ Object (readonly)
Returns the value of attribute verified_at.
230 231 232 |
# File 'lib/sendly/webhooks.rb', line 230 def verified_at @verified_at end |