Class: Redd::Models::Listing

Inherits:
BasicModel show all
Includes:
Enumerable
Defined in:
lib/redd/models/listing.rb

Overview

A backward-expading listing of items.

See Also:

  • Stream

Instance Attribute Summary

Attributes inherited from BasicModel

#client

Instance Method Summary collapse

Methods inherited from BasicModel

from_id, #initialize, #inspect, #method_missing, #respond_to_missing?, #to_h

Constructor Details

This class inherits a constructor from Redd::Models::BasicModel

Dynamic Method Handling

This class handles dynamic methods through the method_missing method in the class Redd::Models::BasicModel

Instance Method Details

#to_aryArray<Comment, Submission, PrivateMessage>

Returns an array representation of self.

Returns:


13
14
15
# File 'lib/redd/models/listing.rb', line 13

def to_ary
  get_attribute(:children)
end