class GithubSearch::User

Attributes

avatar_url[R]
events_url[R]
followers_url[R]
following_url[R]
gists_url[R]
gravatar_id[R]
html_url[R]
id[R]
login[R]
organizations_url[R]
received_events_url[R]
repos_url[R]
score[R]
site_admin[R]
starred_url[R]
subscriptions_url[R]
type[R]
url[R]

Public Class Methods

new(attributes) click to toggle source
# File lib/github-search/user.rb, line 25
def initialize(attributes)
  @id                     = attributes["id"]
  @login                  = attributes["login"]
  @avatar_url             = attributes["avatar_url"]
  @gravatar_id            = attributes["gravatar_id"]
  @url                    = attributes["url"]
  @html_url               = attributes["html_url"]
  @followers_url          = attributes["followers_url"]
  @following_url          = attributes["following_url"]
  @gists_url              = attributes["gists_url"]
  @starred_url            = attributes["starred_url"]
  @subscriptions_url      = attributes["subscriptions_url"]
  @organizations_url      = attributes["organizations_url"]
  @repos_url              = attributes["repos_url"]
  @events_url             = attributes["events_url"]
  @received_events_url    = attributes["received_events_url"]
  @type                   = attributes["type"]
  @site_admin             = attributes["site_admin"]
  @score                  = attributes["score"]
end
sort_options() click to toggle source
# File lib/github-search/user.rb, line 46
def self.sort_options
  [:followers, :repositories, :joined]
end