class HipTail::Rooms
Attributes
raw[R]
Public Class Methods
new(params)
click to toggle source
# File lib/hiptail/atom.rb, line 257 def initialize(params) @raw = params.dup end
Public Instance Methods
max_results()
click to toggle source
@attribute [r] max_results
# File lib/hiptail/atom.rb, line 274 def max_results @raw['maxResults'] end
rooms()
click to toggle source
@attribute [r] rooms @return [Array] Array of HipTail::Room
.
# File lib/hiptail/atom.rb, line 263 def rooms @rooms ||= @raw['items'].map { |item| Room.new(item) } @rooms end
start_index()
click to toggle source
@attribute [r] start_index
# File lib/hiptail/atom.rb, line 269 def start_index @raw['startIndex'] end