Class: Zulip::User
- Inherits:
-
Object
- Object
- Zulip::User
- Defined in:
- lib/zulip/user.rb
Instance Attribute Summary collapse
-
#email ⇒ Object
readonly
Returns the value of attribute email.
-
#full_name ⇒ Object
readonly
Returns the value of attribute full_name.
Instance Method Summary collapse
-
#initialize(user_data) ⇒ User
constructor
A new instance of User.
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
#email ⇒ Object (readonly)
Returns the value of attribute email.
3 4 5 |
# File 'lib/zulip/user.rb', line 3 def email @email end |
#full_name ⇒ Object (readonly)
Returns the value of attribute full_name.
3 4 5 |
# File 'lib/zulip/user.rb', line 3 def full_name @full_name end |