Class: Sendly::WebhookVerificationData

Inherits:
Object
  • Object
show all
Defined in:
lib/sendly/webhooks.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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_nameObject (readonly)

Returns the value of attribute app_name.



230
231
232
# File 'lib/sendly/webhooks.rb', line 230

def app_name
  @app_name
end

#attemptsObject (readonly)

Returns the value of attribute attempts.



230
231
232
# File 'lib/sendly/webhooks.rb', line 230

def attempts
  @attempts
end

#created_atObject (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_statusObject (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_atObject (readonly)

Returns the value of attribute expires_at.



230
231
232
# File 'lib/sendly/webhooks.rb', line 230

def expires_at
  @expires_at
end

#idObject (readonly)

Returns the value of attribute id.



230
231
232
# File 'lib/sendly/webhooks.rb', line 230

def id
  @id
end

#max_attemptsObject (readonly)

Returns the value of attribute max_attempts.



230
231
232
# File 'lib/sendly/webhooks.rb', line 230

def max_attempts
  @max_attempts
end

#metadataObject (readonly)

Returns the value of attribute metadata.



230
231
232
# File 'lib/sendly/webhooks.rb', line 230

def 
  @metadata
end

#organization_idObject (readonly)

Returns the value of attribute organization_id.



230
231
232
# File 'lib/sendly/webhooks.rb', line 230

def organization_id
  @organization_id
end

#phoneObject (readonly)

Returns the value of attribute phone.



230
231
232
# File 'lib/sendly/webhooks.rb', line 230

def phone
  @phone
end

#profile_idObject (readonly)

Returns the value of attribute profile_id.



230
231
232
# File 'lib/sendly/webhooks.rb', line 230

def profile_id
  @profile_id
end

#statusObject (readonly)

Returns the value of attribute status.



230
231
232
# File 'lib/sendly/webhooks.rb', line 230

def status
  @status
end

#template_idObject (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_atObject (readonly)

Returns the value of attribute verified_at.



230
231
232
# File 'lib/sendly/webhooks.rb', line 230

def verified_at
  @verified_at
end