Class: Zulip::Message
- Inherits:
-
Object
- Object
- Zulip::Message
- Defined in:
- lib/zulip/message.rb
Instance Attribute Summary collapse
-
#avatar_url ⇒ Object
readonly
Returns the value of attribute avatar_url.
-
#client ⇒ Object
readonly
Returns the value of attribute client.
-
#content ⇒ Object
readonly
Returns the value of attribute content.
-
#content_type ⇒ Object
readonly
Returns the value of attribute content_type.
-
#display_recipient ⇒ Object
(also: #stream, #display_recipients)
readonly
Returns the value of attribute display_recipient.
-
#gravatar_hash ⇒ Object
readonly
Returns the value of attribute gravatar_hash.
-
#id ⇒ Object
readonly
Returns the value of attribute id.
-
#recipient_id ⇒ Object
readonly
Returns the value of attribute recipient_id.
-
#sender_domain ⇒ Object
readonly
Returns the value of attribute sender_domain.
-
#sender_email ⇒ Object
readonly
Returns the value of attribute sender_email.
-
#sender_full_name ⇒ Object
readonly
Returns the value of attribute sender_full_name.
-
#sender_id ⇒ Object
readonly
Returns the value of attribute sender_id.
-
#sender_short_name ⇒ Object
readonly
Returns the value of attribute sender_short_name.
-
#subject ⇒ Object
readonly
Returns the value of attribute subject.
-
#subject_links ⇒ Object
readonly
Returns the value of attribute subject_links.
-
#timestamp ⇒ Object
readonly
Returns the value of attribute timestamp.
-
#type ⇒ Object
readonly
Returns the value of attribute type.
Instance Method Summary collapse
-
#initialize(attrs = {}) ⇒ Message
constructor
A new instance of Message.
Constructor Details
#initialize(attrs = {}) ⇒ Message
Returns a new instance of Message.
11 12 13 14 15 |
# File 'lib/zulip/message.rb', line 11 def initialize(attrs={}) attrs.each do |name, value| instance_variable_set("@#{name}", value) end end |
Instance Attribute Details
#avatar_url ⇒ Object (readonly)
Returns the value of attribute avatar_url.
3 4 5 |
# File 'lib/zulip/message.rb', line 3 def avatar_url @avatar_url end |
#client ⇒ Object (readonly)
Returns the value of attribute client.
3 4 5 |
# File 'lib/zulip/message.rb', line 3 def client @client end |
#content ⇒ Object (readonly)
Returns the value of attribute content.
3 4 5 |
# File 'lib/zulip/message.rb', line 3 def content @content end |
#content_type ⇒ Object (readonly)
Returns the value of attribute content_type.
3 4 5 |
# File 'lib/zulip/message.rb', line 3 def content_type @content_type end |
#display_recipient ⇒ Object (readonly) Also known as: stream, display_recipients
Returns the value of attribute display_recipient.
3 4 5 |
# File 'lib/zulip/message.rb', line 3 def display_recipient @display_recipient end |
#gravatar_hash ⇒ Object (readonly)
Returns the value of attribute gravatar_hash.
3 4 5 |
# File 'lib/zulip/message.rb', line 3 def gravatar_hash @gravatar_hash end |
#id ⇒ Object (readonly)
Returns the value of attribute id.
3 4 5 |
# File 'lib/zulip/message.rb', line 3 def id @id end |
#recipient_id ⇒ Object (readonly)
Returns the value of attribute recipient_id.
3 4 5 |
# File 'lib/zulip/message.rb', line 3 def recipient_id @recipient_id end |
#sender_domain ⇒ Object (readonly)
Returns the value of attribute sender_domain.
3 4 5 |
# File 'lib/zulip/message.rb', line 3 def sender_domain @sender_domain end |
#sender_email ⇒ Object (readonly)
Returns the value of attribute sender_email.
3 4 5 |
# File 'lib/zulip/message.rb', line 3 def sender_email @sender_email end |
#sender_full_name ⇒ Object (readonly)
Returns the value of attribute sender_full_name.
3 4 5 |
# File 'lib/zulip/message.rb', line 3 def sender_full_name @sender_full_name end |
#sender_id ⇒ Object (readonly)
Returns the value of attribute sender_id.
3 4 5 |
# File 'lib/zulip/message.rb', line 3 def sender_id @sender_id end |
#sender_short_name ⇒ Object (readonly)
Returns the value of attribute sender_short_name.
3 4 5 |
# File 'lib/zulip/message.rb', line 3 def sender_short_name @sender_short_name end |
#subject ⇒ Object (readonly)
Returns the value of attribute subject.
3 4 5 |
# File 'lib/zulip/message.rb', line 3 def subject @subject end |
#subject_links ⇒ Object (readonly)
Returns the value of attribute subject_links.
3 4 5 |
# File 'lib/zulip/message.rb', line 3 def subject_links @subject_links end |
#timestamp ⇒ Object (readonly)
Returns the value of attribute timestamp.
3 4 5 |
# File 'lib/zulip/message.rb', line 3 def @timestamp end |
#type ⇒ Object (readonly)
Returns the value of attribute type.
3 4 5 |
# File 'lib/zulip/message.rb', line 3 def type @type end |