Class: Twitter::DirectMessage

Inherits:
Identity show all
Includes:
Creatable, Entities
Defined in:
lib/twitter/direct_message.rb

Instance Attribute Summary collapse

Attributes inherited from Identity

#id

Attributes inherited from Base

#attrs

Method Summary

Methods included from Entities

#entities?, #hashtags, #hashtags?, #media, #media?, #symbols, #symbols?, #uris, #uris?, #user_mentions, #user_mentions?

Methods included from Creatable

#created?, #created_at

Methods inherited from Identity

#initialize

Methods inherited from Base

#[], attr_reader, define_attribute_method, define_predicate_method, define_uri_method, display_uri_attr_reader, #initialize, object_attr_reader, predicate_attr_reader, uri_attr_reader

Methods included from Utils

flat_pmap, pmap

Constructor Details

This class inherits a constructor from Twitter::Identity

Instance Attribute Details

#recipient_idObject (readonly)

Returns the value of attribute recipient_id.



11
12
13
# File 'lib/twitter/direct_message.rb', line 11

def recipient_id
  @recipient_id
end

#sender_idObject (readonly)

Returns the value of attribute sender_id.



11
12
13
# File 'lib/twitter/direct_message.rb', line 11

def sender_id
  @sender_id
end

#textString (readonly) Also known as: full_text

Returns:

  • (String)


10
11
12
# File 'lib/twitter/direct_message.rb', line 10

def text
  @text
end