Class: Rafflesia::AuthEnvelopePasswordResetStartData
- Inherits:
-
Types::BaseModel
- Object
- Types::BaseModel
- Rafflesia::AuthEnvelopePasswordResetStartData
- Defined in:
- lib/rafflesia/auth/auth_envelope_password_reset_start_data.rb
Constant Summary collapse
- HASH_ATTRS =
{ data: :data, error: :error, ok: :ok }.freeze
Instance Attribute Summary collapse
-
#data ⇒ Object
Returns the value of attribute data.
-
#error ⇒ Object
Returns the value of attribute error.
-
#ok ⇒ Object
Returns the value of attribute ok.
Instance Method Summary collapse
-
#initialize(json) ⇒ AuthEnvelopePasswordResetStartData
constructor
A new instance of AuthEnvelopePasswordResetStartData.
Constructor Details
#initialize(json) ⇒ AuthEnvelopePasswordResetStartData
Returns a new instance of AuthEnvelopePasswordResetStartData.
19 20 21 22 23 24 25 |
# File 'lib/rafflesia/auth/auth_envelope_password_reset_start_data.rb', line 19 def initialize(json) super() hash = self.class.normalize(json) @data = hash[:data] ? Rafflesia::PasswordResetStartData.new(hash[:data]) : nil @error = hash[:error] ? Rafflesia::AuthError.new(hash[:error]) : nil @ok = hash[:ok] end |
Instance Attribute Details
#data ⇒ Object
Returns the value of attribute data.
14 15 16 |
# File 'lib/rafflesia/auth/auth_envelope_password_reset_start_data.rb', line 14 def data @data end |
#error ⇒ Object
Returns the value of attribute error.
14 15 16 |
# File 'lib/rafflesia/auth/auth_envelope_password_reset_start_data.rb', line 14 def error @error end |
#ok ⇒ Object
Returns the value of attribute ok.
14 15 16 |
# File 'lib/rafflesia/auth/auth_envelope_password_reset_start_data.rb', line 14 def ok @ok end |