lib/github-api-client/user.rb
# End-user way to fetch information
# @param [Array<Symbol>] things Things to fetch for GitHub::User
# @option things [Symbol] :self Sync with GitHub Database
# @option things [Symbol] :followers Map followers from GitHub Database
# @option things [Symbol] :followings Map user's followings from GitHub
# @return [GitHub::User] Chainable, updated User
# @see GitHub::User#get
# @see GitHub::User#get_followers
End-user way to fetch information
End - user way to fetch information
def fetch(*things)
      things.each do |thing|
        case thing
          when :self then get
          when :followers then get_followers
          when :followings then get_followings
          when :organizations then get_organizations
        end
      end
      self
    end
def fetch ( * things ) things . each do | thing | case thing when :self then get when :followers then get_followers when :followings then get_followings when :organizations then get_organizations end end self end
End-user way to fetch information
End - user way to fetch information
Chainable, updated User
Chainable updated User
GitHub::User
things
:followings Map user's followings from GitHub
: followings Map user ' s followings from GitHub
<not_specific>
things Things to fetch for GitHub::User
things Things to fetch for GitHub :: User
see
None
see
None