Class: Sendly::ValidateSessionResponse
- Inherits:
-
Object
- Object
- Sendly::ValidateSessionResponse
- Defined in:
- lib/sendly/verify.rb
Instance Attribute Summary collapse
-
#metadata ⇒ Object
readonly
Returns the value of attribute metadata.
-
#phone ⇒ Object
readonly
Returns the value of attribute phone.
-
#session_id ⇒ Object
readonly
Returns the value of attribute session_id.
-
#valid ⇒ Object
readonly
Returns the value of attribute valid.
-
#verified_at ⇒ Object
readonly
Returns the value of attribute verified_at.
Instance Method Summary collapse
-
#initialize(data) ⇒ ValidateSessionResponse
constructor
A new instance of ValidateSessionResponse.
- #valid? ⇒ Boolean
Constructor Details
#initialize(data) ⇒ ValidateSessionResponse
Returns a new instance of ValidateSessionResponse.
127 128 129 130 131 132 133 |
# File 'lib/sendly/verify.rb', line 127 def initialize(data) @valid = data["valid"] @session_id = data["session_id"] @phone = data["phone"] @verified_at = data["verified_at"] @metadata = data["metadata"] || {} end |
Instance Attribute Details
#metadata ⇒ Object (readonly)
Returns the value of attribute metadata.
125 126 127 |
# File 'lib/sendly/verify.rb', line 125 def @metadata end |
#phone ⇒ Object (readonly)
Returns the value of attribute phone.
125 126 127 |
# File 'lib/sendly/verify.rb', line 125 def phone @phone end |
#session_id ⇒ Object (readonly)
Returns the value of attribute session_id.
125 126 127 |
# File 'lib/sendly/verify.rb', line 125 def session_id @session_id end |
#valid ⇒ Object (readonly)
Returns the value of attribute valid.
125 126 127 |
# File 'lib/sendly/verify.rb', line 125 def valid @valid end |
#verified_at ⇒ Object (readonly)
Returns the value of attribute verified_at.
125 126 127 |
# File 'lib/sendly/verify.rb', line 125 def verified_at @verified_at end |
Instance Method Details
#valid? ⇒ Boolean
135 136 137 |
# File 'lib/sendly/verify.rb', line 135 def valid? valid end |