Class: Rafflesia::TeamMemberResponse
- Inherits:
-
Rafflesia::Types::BaseModel
- Object
- Rafflesia::Types::BaseModel
- Rafflesia::TeamMemberResponse
- 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
-
#email ⇒ Object
Returns the value of attribute email.
-
#email_verified ⇒ Object
Returns the value of attribute email_verified.
-
#first_name ⇒ Object
Returns the value of attribute first_name.
-
#id ⇒ Object
Returns the value of attribute id.
-
#last_active_at ⇒ Object
Returns the value of attribute last_active_at.
-
#last_name ⇒ Object
Returns the value of attribute last_name.
-
#membership_id ⇒ Object
Returns the value of attribute membership_id.
-
#name ⇒ Object
Returns the value of attribute name.
-
#profile_picture_url ⇒ Object
Returns the value of attribute profile_picture_url.
-
#role ⇒ Object
Returns the value of attribute role.
Instance Method Summary collapse
-
#initialize(json) ⇒ TeamMemberResponse
constructor
A new instance of TeamMemberResponse.
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
#email ⇒ Object
Returns the value of attribute email.
21 22 23 |
# File 'lib/rafflesia/auth/team_member_response.rb', line 21 def email @email end |
#email_verified ⇒ Object
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_name ⇒ Object
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 |
#id ⇒ Object
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_at ⇒ Object
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_name ⇒ Object
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_id ⇒ Object
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 |
#name ⇒ Object
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_url ⇒ Object
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 |
#role ⇒ Object
Returns the value of attribute role.
21 22 23 |
# File 'lib/rafflesia/auth/team_member_response.rb', line 21 def role @role end |