Class: Rafflesia::TeamInvitationResponse

Inherits:
Rafflesia::Types::BaseModel
  • Object
show all
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

Instance Method Summary collapse

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_atObject

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

#emailObject

Returns the value of attribute email.



17
18
19
# File 'lib/rafflesia/auth/team_invitation_response.rb', line 17

def email
  @email
end

#expires_atObject

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

#idObject

Returns the value of attribute id.



17
18
19
# File 'lib/rafflesia/auth/team_invitation_response.rb', line 17

def id
  @id
end

#roleObject

Returns the value of attribute role.



17
18
19
# File 'lib/rafflesia/auth/team_invitation_response.rb', line 17

def role
  @role
end

#stateObject

Returns the value of attribute state.



17
18
19
# File 'lib/rafflesia/auth/team_invitation_response.rb', line 17

def state
  @state
end