Class: Pupil::DirectMessage
- Inherits:
-
Object
- Object
- Pupil::DirectMessage
- Defined in:
- lib/pupil/schemes.rb
Instance Attribute Summary (collapse)
-
- (Object) created_at
readonly
Returns the value of attribute created_at.
-
- (Object) id
readonly
Returns the value of attribute id.
-
- (Object) recipient
readonly
Returns the value of attribute recipient.
-
- (Object) recipient_id
readonly
Returns the value of attribute recipient_id.
-
- (Object) recipient_screen_name
readonly
Returns the value of attribute recipient_screen_name.
-
- (Object) sender
readonly
Returns the value of attribute sender.
-
- (Object) sender_id
readonly
Returns the value of attribute sender_id.
-
- (Object) sender_screen_name
readonly
Returns the value of attribute sender_screen_name.
-
- (Object) text
readonly
Returns the value of attribute text.
Instance Method Summary (collapse)
-
- (DirectMessage) initialize(element)
constructor
A new instance of DirectMessage.
Constructor Details
- (DirectMessage) initialize(element)
A new instance of DirectMessage
208 209 210 211 212 213 214 215 216 217 218 |
# File 'lib/pupil/schemes.rb', line 208 def initialize(element) @id = element.elements['id'].text() @sender_id = element.elements['sender_id'].text() @text = element.elements['text'].text() @recipient_id = element.elements['recipient_id'].text() @created_at = element.elements['created_at'].text() @sender_screen_name = element.elements['sender_screen_name'].text() @recipient_screen_name= element.elements['recipient_screen_name'].text() @sender = User.new(element.elements['sender']) @recipient = User.new(element.elements['recipient']) end |
Instance Attribute Details
- (Object) created_at (readonly)
Returns the value of attribute created_at
202 203 204 |
# File 'lib/pupil/schemes.rb', line 202 def created_at @created_at end |
- (Object) id (readonly)
Returns the value of attribute id
198 199 200 |
# File 'lib/pupil/schemes.rb', line 198 def id @id end |
- (Object) recipient (readonly)
Returns the value of attribute recipient
206 207 208 |
# File 'lib/pupil/schemes.rb', line 206 def recipient @recipient end |
- (Object) recipient_id (readonly)
Returns the value of attribute recipient_id
201 202 203 |
# File 'lib/pupil/schemes.rb', line 201 def recipient_id @recipient_id end |
- (Object) recipient_screen_name (readonly)
Returns the value of attribute recipient_screen_name
204 205 206 |
# File 'lib/pupil/schemes.rb', line 204 def recipient_screen_name @recipient_screen_name end |
- (Object) sender (readonly)
Returns the value of attribute sender
205 206 207 |
# File 'lib/pupil/schemes.rb', line 205 def sender @sender end |
- (Object) sender_id (readonly)
Returns the value of attribute sender_id
199 200 201 |
# File 'lib/pupil/schemes.rb', line 199 def sender_id @sender_id end |
- (Object) sender_screen_name (readonly)
Returns the value of attribute sender_screen_name
203 204 205 |
# File 'lib/pupil/schemes.rb', line 203 def sender_screen_name @sender_screen_name end |
- (Object) text (readonly)
Returns the value of attribute text
200 201 202 |
# File 'lib/pupil/schemes.rb', line 200 def text @text end |