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