Class: Rafflesia::SignUpRequest
- Inherits:
-
Types::BaseModel
- Object
- Types::BaseModel
- Rafflesia::SignUpRequest
- Defined in:
- lib/rafflesia/auth/sign_up_request.rb
Constant Summary collapse
- HASH_ATTRS =
{ email: :email, invitation_token: :invitation_token, name: :name, 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.
-
#name ⇒ Object
Returns the value of attribute name.
-
#password ⇒ Object
Returns the value of attribute password.
Instance Method Summary collapse
-
#initialize(json) ⇒ SignUpRequest
constructor
A new instance of SignUpRequest.
Constructor Details
#initialize(json) ⇒ SignUpRequest
Returns a new instance of SignUpRequest.
21 22 23 24 25 26 27 28 |
# File 'lib/rafflesia/auth/sign_up_request.rb', line 21 def initialize(json) super() hash = self.class.normalize(json) @email = hash[:email] @invitation_token = hash[:invitation_token] @name = hash[:name] @password = hash[:password] end |
Instance Attribute Details
#email ⇒ Object
Returns the value of attribute email.
15 16 17 |
# File 'lib/rafflesia/auth/sign_up_request.rb', line 15 def email @email end |
#invitation_token ⇒ Object
Returns the value of attribute invitation_token.
15 16 17 |
# File 'lib/rafflesia/auth/sign_up_request.rb', line 15 def invitation_token @invitation_token end |
#name ⇒ Object
Returns the value of attribute name.
15 16 17 |
# File 'lib/rafflesia/auth/sign_up_request.rb', line 15 def name @name end |
#password ⇒ Object
Returns the value of attribute password.
15 16 17 |
# File 'lib/rafflesia/auth/sign_up_request.rb', line 15 def password @password end |