Class: Serel::Site

Inherits:
Base
  • Object
show all
Defined in:
lib/serel/site.rb

Overview

The Site class represents a Stack Exchange site.

Finding Sites

Sites can be retrieved using all and get.

all

Serel::Site.all

Automatically paginates through the list of sites and returns an array of every Stack Exchange site.

get

Serel::Site.get

Retrieves a page of sites, applying any scopes that have previously been defined.

Method Summary

Methods inherited from Base

#[], #[]=, #all, associations, attribute, config, #find, finder_methods, #get, #initialize, #inspect, #meth, method_missing, #network, network_wide, new_relation, request, respond_to?, #type, with_ids

Constructor Details

This class inherits a constructor from Serel::Base