Class: Rafflesia::TeamInvitationResponse
- Inherits:
-
Rafflesia::Types::BaseModel
- Object
- Rafflesia::Types::BaseModel
- Rafflesia::TeamInvitationResponse
- Defined in:
- lib/rafflesia/auth/team_invitation_response.rb
Constant Summary collapse
- HASH_ATTRS =
{ created_at: :created_at, email: :email, expires_at: :expires_at, id: :id, role: :role, state: :state }.freeze
Instance Attribute Summary collapse
-
#created_at ⇒ Object
Returns the value of attribute created_at.
-
#email ⇒ Object
Returns the value of attribute email.
-
#expires_at ⇒ Object
Returns the value of attribute expires_at.
-
#id ⇒ Object
Returns the value of attribute id.
-
#role ⇒ Object
Returns the value of attribute role.
-
#state ⇒ Object
Returns the value of attribute state.
Instance Method Summary collapse
-
#initialize(json) ⇒ TeamInvitationResponse
constructor
A new instance of TeamInvitationResponse.
Constructor Details
#initialize(json) ⇒ TeamInvitationResponse
Returns a new instance of TeamInvitationResponse.
25 26 27 28 29 30 31 32 33 34 |
# File 'lib/rafflesia/auth/team_invitation_response.rb', line 25 def initialize(json) super() hash = self.class.normalize(json) @created_at = hash[:created_at] @email = hash[:email] @expires_at = hash[:expires_at] @id = hash[:id] @role = hash[:role] @state = hash[:state] end |
Instance Attribute Details
#created_at ⇒ Object
Returns the value of attribute created_at.
17 18 19 |
# File 'lib/rafflesia/auth/team_invitation_response.rb', line 17 def created_at @created_at end |
#email ⇒ Object
Returns the value of attribute email.
17 18 19 |
# File 'lib/rafflesia/auth/team_invitation_response.rb', line 17 def email @email end |
#expires_at ⇒ Object
Returns the value of attribute expires_at.
17 18 19 |
# File 'lib/rafflesia/auth/team_invitation_response.rb', line 17 def expires_at @expires_at end |
#id ⇒ Object
Returns the value of attribute id.
17 18 19 |
# File 'lib/rafflesia/auth/team_invitation_response.rb', line 17 def id @id end |
#role ⇒ Object
Returns the value of attribute role.
17 18 19 |
# File 'lib/rafflesia/auth/team_invitation_response.rb', line 17 def role @role end |
#state ⇒ Object
Returns the value of attribute state.
17 18 19 |
# File 'lib/rafflesia/auth/team_invitation_response.rb', line 17 def state @state end |