Class: Arena::UserFeed

Inherits:
Base
  • Object
show all
Defined in:
lib/arena/user_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.



6
7
8
# File 'lib/arena/user_feed.rb', line 6

def limit
  @limit
end

#offsetObject (readonly)

Returns the value of attribute offset.



6
7
8
# File 'lib/arena/user_feed.rb', line 6

def offset
  @offset
end

#range_endObject (readonly)

Returns the value of attribute range_end.



6
7
8
# File 'lib/arena/user_feed.rb', line 6

def range_end
  @range_end
end

#range_startObject (readonly)

Returns the value of attribute range_start.



6
7
8
# File 'lib/arena/user_feed.rb', line 6

def range_start
  @range_start
end

#totalObject (readonly)

Returns the value of attribute total.



6
7
8
# File 'lib/arena/user_feed.rb', line 6

def total
  @total
end

#typeObject (readonly)

Returns the value of attribute type.



6
7
8
# File 'lib/arena/user_feed.rb', line 6

def type
  @type
end

Instance Method Details

#storiesObject Also known as: items



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

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