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