Class: Sendly::SendVerificationResponse

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(data) ⇒ SendVerificationResponse

Returns a new instance of SendVerificationResponse.



66
67
68
69
70
71
72
73
74
# File 'lib/sendly/verify.rb', line 66

def initialize(data)
  @id = data["id"]
  @status = data["status"]
  @phone = data["phone"]
  @expires_at = data["expires_at"]
  @sandbox = data["sandbox"] || false
  @sandbox_code = data["sandbox_code"]
  @message = data["message"]
end

Instance Attribute Details

#expires_atObject (readonly)

Returns the value of attribute expires_at.



64
65
66
# File 'lib/sendly/verify.rb', line 64

def expires_at
  @expires_at
end

#idObject (readonly)

Returns the value of attribute id.



64
65
66
# File 'lib/sendly/verify.rb', line 64

def id
  @id
end

#messageObject (readonly)

Returns the value of attribute message.



64
65
66
# File 'lib/sendly/verify.rb', line 64

def message
  @message
end

#phoneObject (readonly)

Returns the value of attribute phone.



64
65
66
# File 'lib/sendly/verify.rb', line 64

def phone
  @phone
end

#sandboxObject (readonly)

Returns the value of attribute sandbox.



64
65
66
# File 'lib/sendly/verify.rb', line 64

def sandbox
  @sandbox
end

#sandbox_codeObject (readonly)

Returns the value of attribute sandbox_code.



64
65
66
# File 'lib/sendly/verify.rb', line 64

def sandbox_code
  @sandbox_code
end

#statusObject (readonly)

Returns the value of attribute status.



64
65
66
# File 'lib/sendly/verify.rb', line 64

def status
  @status
end