Class: Messed::Message::Twitter

Inherits:
Messed::Message show all
Defined in:
lib/messed/message/twitter.rb

Instance Attribute Summary collapse

Attributes inherited from Messed::Message

#body, #enqueued_at, #from, #in_reply_to, #to

Instance Method Summary collapse

Methods inherited from Messed::Message

class_for_type

Constructor Details

#initialize(body = nil) ⇒ Twitter

Returns a new instance of Twitter.



9
10
11
12
# File 'lib/messed/message/twitter.rb', line 9

def initialize(body = nil)
  super(body)
  self.private = false
end

Instance Attribute Details

#created_atObject

Returns the value of attribute created_at.



5
6
7
# File 'lib/messed/message/twitter.rb', line 5

def created_at
  @created_at
end

#from_user_idObject

Returns the value of attribute from_user_id.



5
6
7
# File 'lib/messed/message/twitter.rb', line 5

def from_user_id
  @from_user_id
end

#geoObject

Returns the value of attribute geo.



5
6
7
# File 'lib/messed/message/twitter.rb', line 5

def geo
  @geo
end

#idObject

Returns the value of attribute id.



5
6
7
# File 'lib/messed/message/twitter.rb', line 5

def id
  @id
end

#iso_language_codeObject

Returns the value of attribute iso_language_code.



5
6
7
# File 'lib/messed/message/twitter.rb', line 5

def iso_language_code
  @iso_language_code
end

#privateObject Also known as: private?

Returns the value of attribute private.



5
6
7
# File 'lib/messed/message/twitter.rb', line 5

def private
  @private
end

#profile_image_urlObject

Returns the value of attribute profile_image_url.



5
6
7
# File 'lib/messed/message/twitter.rb', line 5

def profile_image_url
  @profile_image_url
end

#sourceObject

Returns the value of attribute source.



5
6
7
# File 'lib/messed/message/twitter.rb', line 5

def source
  @source
end

#to_user_idObject

Returns the value of attribute to_user_id.



5
6
7
# File 'lib/messed/message/twitter.rb', line 5

def to_user_id
  @to_user_id
end

Instance Method Details

#unique_idObject



14
15
16
# File 'lib/messed/message/twitter.rb', line 14

def unique_id
  from_user_id
end