Class: Rafflesia::TeamMemberResponse

Inherits:
Rafflesia::Types::BaseModel
  • Object
show all
Defined in:
lib/rafflesia/auth/team_member_response.rb

Constant Summary collapse

HASH_ATTRS =
{
  email: :email,
  email_verified: :email_verified,
  first_name: :first_name,
  id: :id,
  last_active_at: :last_active_at,
  last_name: :last_name,
  membership_id: :membership_id,
  name: :name,
  profile_picture_url: :profile_picture_url,
  role: :role
}.freeze

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(json) ⇒ TeamMemberResponse

Returns a new instance of TeamMemberResponse.



33
34
35
36
37
38
39
40
41
42
43
44
45
46
# File 'lib/rafflesia/auth/team_member_response.rb', line 33

def initialize(json)
  super()
  hash = self.class.normalize(json)
  @email = hash[:email]
  @email_verified = hash[:email_verified]
  @first_name = hash[:first_name]
  @id = hash[:id]
  @last_active_at = hash[:last_active_at]
  @last_name = hash[:last_name]
  @membership_id = hash[:membership_id]
  @name = hash[:name]
  @profile_picture_url = hash[:profile_picture_url]
  @role = hash[:role]
end

Instance Attribute Details

#emailObject

Returns the value of attribute email.



21
22
23
# File 'lib/rafflesia/auth/team_member_response.rb', line 21

def email
  @email
end

#email_verifiedObject

Returns the value of attribute email_verified.



21
22
23
# File 'lib/rafflesia/auth/team_member_response.rb', line 21

def email_verified
  @email_verified
end

#first_nameObject

Returns the value of attribute first_name.



21
22
23
# File 'lib/rafflesia/auth/team_member_response.rb', line 21

def first_name
  @first_name
end

#idObject

Returns the value of attribute id.



21
22
23
# File 'lib/rafflesia/auth/team_member_response.rb', line 21

def id
  @id
end

#last_active_atObject

Returns the value of attribute last_active_at.



21
22
23
# File 'lib/rafflesia/auth/team_member_response.rb', line 21

def last_active_at
  @last_active_at
end

#last_nameObject

Returns the value of attribute last_name.



21
22
23
# File 'lib/rafflesia/auth/team_member_response.rb', line 21

def last_name
  @last_name
end

#membership_idObject

Returns the value of attribute membership_id.



21
22
23
# File 'lib/rafflesia/auth/team_member_response.rb', line 21

def membership_id
  @membership_id
end

#nameObject

Returns the value of attribute name.



21
22
23
# File 'lib/rafflesia/auth/team_member_response.rb', line 21

def name
  @name
end

#profile_picture_urlObject

Returns the value of attribute profile_picture_url.



21
22
23
# File 'lib/rafflesia/auth/team_member_response.rb', line 21

def profile_picture_url
  @profile_picture_url
end

#roleObject

Returns the value of attribute role.



21
22
23
# File 'lib/rafflesia/auth/team_member_response.rb', line 21

def role
  @role
end