Class: Yammer::MessageList

Inherits:
Array
  • Object
show all
Defined in:
lib/yammer/message_list.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#idsObject (readonly)

Returns the value of attribute ids.



3
4
5
# File 'lib/yammer/message_list.rb', line 3

def ids
  @ids
end

#older_availableObject (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

#firstObject



12
13
14
# File 'lib/yammer/message_list.rb', line 12

def first
  self[0]
end

#lastObject



16
17
18
# File 'lib/yammer/message_list.rb', line 16

def last
  self[self.size - 1]
end