Class: GitHub::Organization
- Inherits:
-
ActiveRecord::Base
- Object
- ActiveRecord::Base
- GitHub::Organization
- Defined in:
- lib/github-api-client/organization.rb
Class Method Summary collapse
Instance Method Summary collapse
Class Method Details
.get(login) ⇒ Object
14 15 16 17 |
# File 'lib/github-api-client/organization.rb', line 14 def self.get(login) o = GitHub::Organization.find_by_login(login) o ||= GitHub::Organization.new(:login => login).get end |
Instance Method Details
#fetch(*things) ⇒ Object
19 20 21 22 23 24 25 26 27 28 |
# File 'lib/github-api-client/organization.rb', line 19 def fetch(*things) things.each do |thing| case thing when :self then get when :members then get_members when :repositories then get_repositories end end self end |