Class: Zulip::Message

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

Instance Attribute Summary collapse

Instance Method Summary collapse

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_urlObject (readonly)

Returns the value of attribute avatar_url.



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

def avatar_url
  @avatar_url
end

#clientObject (readonly)

Returns the value of attribute client.



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

def client
  @client
end

#contentObject (readonly)

Returns the value of attribute content.



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

def content
  @content
end

#content_typeObject (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_recipientObject (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_hashObject (readonly)

Returns the value of attribute gravatar_hash.



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

def gravatar_hash
  @gravatar_hash
end

#idObject (readonly)

Returns the value of attribute id.



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

def id
  @id
end

#recipient_idObject (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_domainObject (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_emailObject (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_nameObject (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_idObject (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_nameObject (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

#subjectObject (readonly)

Returns the value of attribute subject.



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

def subject
  @subject
end

Returns the value of attribute subject_links.



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

def subject_links
  @subject_links
end

#timestampObject (readonly)

Returns the value of attribute timestamp.



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

def timestamp
  @timestamp
end

#typeObject (readonly)

Returns the value of attribute type.



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

def type
  @type
end