Class: Socrates::Adapters::User
- Inherits:
-
Struct
- Object
- Struct
- Socrates::Adapters::User
- Defined in:
- lib/socrates/adapters/stubs.rb
Overview
User, Profile are POROs that represent keys concepts that exist in Slack (or other chat systems).
Instance Attribute Summary collapse
-
#id ⇒ Object
Returns the value of attribute id.
-
#name ⇒ Object
Returns the value of attribute name.
-
#profile ⇒ Object
Returns the value of attribute profile.
-
#tz_offset ⇒ Object
Returns the value of attribute tz_offset.
Instance Method Summary collapse
Instance Attribute Details
#id ⇒ Object
Returns the value of attribute id
6 7 8 |
# File 'lib/socrates/adapters/stubs.rb', line 6 def id @id end |
#name ⇒ Object
Returns the value of attribute name
6 7 8 |
# File 'lib/socrates/adapters/stubs.rb', line 6 def name @name end |
#profile ⇒ Object
Returns the value of attribute profile
6 7 8 |
# File 'lib/socrates/adapters/stubs.rb', line 6 def profile @profile end |
#tz_offset ⇒ Object
Returns the value of attribute tz_offset
6 7 8 |
# File 'lib/socrates/adapters/stubs.rb', line 6 def tz_offset @tz_offset end |
Instance Method Details
#real_name ⇒ Object
7 8 9 10 11 |
# File 'lib/socrates/adapters/stubs.rb', line 7 def real_name return "" if profile.nil? "#{profile.first_name} #{profile.last_name}" end |