Class: Zulip::User

Inherits:
Object
  • Object
show all
Defined in:
lib/zulip/user.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(user_data) ⇒ User

Returns a new instance of User.



4
5
6
7
# File 'lib/zulip/user.rb', line 4

def initialize(user_data)
  @email = user_data['email']
  @full_name = user_data['full_name']
end

Instance Attribute Details

#emailObject (readonly)

Returns the value of attribute email.



3
4
5
# File 'lib/zulip/user.rb', line 3

def email
  @email
end

#full_nameObject (readonly)

Returns the value of attribute full_name.



3
4
5
# File 'lib/zulip/user.rb', line 3

def full_name
  @full_name
end