Class: Arena::ChannelFeed

Inherits:
Base
  • Object
show all
Defined in:
lib/arena/channel_feed.rb

Instance Attribute Summary collapse

Attributes inherited from Base

#attrs

Instance Method Summary collapse

Methods inherited from Base

attr_reader, #initialize

Constructor Details

This class inherits a constructor from Arena::Base

Instance Attribute Details

#limitObject (readonly)

Returns the value of attribute limit.



8
9
10
# File 'lib/arena/channel_feed.rb', line 8

def limit
  @limit
end

#offsetObject (readonly)

Returns the value of attribute offset.



8
9
10
# File 'lib/arena/channel_feed.rb', line 8

def offset
  @offset
end

#range_endObject (readonly)

Returns the value of attribute range_end.



8
9
10
# File 'lib/arena/channel_feed.rb', line 8

def range_end
  @range_end
end

#range_startObject (readonly)

Returns the value of attribute range_start.



8
9
10
# File 'lib/arena/channel_feed.rb', line 8

def range_start
  @range_start
end

#totalObject (readonly)

Returns the value of attribute total.



8
9
10
# File 'lib/arena/channel_feed.rb', line 8

def total
  @total
end

#typeObject (readonly)

Returns the value of attribute type.



8
9
10
# File 'lib/arena/channel_feed.rb', line 8

def type
  @type
end

Instance Method Details

#storiesObject Also known as: items



10
11
12
# File 'lib/arena/channel_feed.rb', line 10

def stories
  @stories ||= @attrs['items'].collect { |item| Arena::Story.new(item) } if stories?
end