Class: Twitter::DirectMessage
- Includes:
- Creatable
- Defined in:
- lib/twitter/direct_message.rb
Instance Attribute Summary collapse
-
#text ⇒ Object
(also: #full_text)
readonly
Returns the value of attribute text.
Instance Method Summary collapse
Methods included from Creatable
Methods inherited from Identity
#==, fetch, #id, #initialize, store
Methods inherited from Base
#[], #attr_equal, attr_reader, #attrs, #attrs_equal, fetch, fetch_or_new, from_response, identity_map, #initialize, store, #update
Constructor Details
This class inherits a constructor from Twitter::Identity
Instance Attribute Details
#text ⇒ Object (readonly) Also known as: full_text
Returns the value of attribute text.
7 8 9 |
# File 'lib/twitter/direct_message.rb', line 7 def text @text end |
Instance Method Details
#recipient ⇒ Twitter::User
11 12 13 |
# File 'lib/twitter/direct_message.rb', line 11 def recipient @recipient ||= Twitter::User.fetch_or_new(@attrs[:recipient]) end |
#sender ⇒ Twitter::User
16 17 18 |
# File 'lib/twitter/direct_message.rb', line 16 def sender @sender ||= Twitter::User.fetch_or_new(@attrs[:sender]) end |