Class: Twitter::DirectMessage
- Includes:
- Creatable
- Defined in:
- lib/twitter/direct_message.rb
Instance Attribute Summary collapse
-
#text ⇒ Object
readonly
Returns the value of attribute text.
Attributes inherited from Base
Instance Method Summary collapse
Methods included from Creatable
Methods inherited from Identity
#==, fetch, #id, #initialize, store
Methods inherited from Base
#[], attr_reader, 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)
Returns the value of attribute text.
8 9 10 |
# File 'lib/twitter/direct_message.rb', line 8 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 |