Class: Yammer::MessageList
- Inherits:
-
Array
- Object
- Array
- Yammer::MessageList
- Defined in:
- lib/yammer/message_list.rb
Instance Attribute Summary collapse
-
#ids ⇒ Object
readonly
Returns the value of attribute ids.
-
#older_available ⇒ Object
readonly
Returns the value of attribute older_available.
Instance Method Summary collapse
- #first ⇒ Object
-
#initialize(a, oa, c) ⇒ MessageList
constructor
A new instance of MessageList.
- #last ⇒ Object
Constructor Details
#initialize(a, oa, c) ⇒ MessageList
Returns a new instance of MessageList.
5 6 7 8 9 10 |
# File 'lib/yammer/message_list.rb', line 5 def initialize(a, oa, c) super(a) @older_available = oa @client = c @ids = a.map {|m| m.id}.sort end |
Instance Attribute Details
#ids ⇒ Object (readonly)
Returns the value of attribute ids.
3 4 5 |
# File 'lib/yammer/message_list.rb', line 3 def ids @ids end |
#older_available ⇒ Object (readonly)
Returns the value of attribute older_available.
3 4 5 |
# File 'lib/yammer/message_list.rb', line 3 def older_available @older_available end |
Instance Method Details
#first ⇒ Object
12 13 14 |
# File 'lib/yammer/message_list.rb', line 12 def first self[0] end |
#last ⇒ Object
16 17 18 |
# File 'lib/yammer/message_list.rb', line 16 def last self[self.size - 1] end |