Class: Buildkite::Organization
- Defined in:
- lib/buildkite/models/organization.rb
Class Method Summary collapse
Methods inherited from Object
Constructor Details
This class inherits a constructor from Buildkite::Object
Class Method Details
.list ⇒ Object
6 7 8 9 |
# File 'lib/buildkite/models/organization.rb', line 6 def list response = Client.get_request("organizations") Collection.from_response(response, type: Organization) end |
.retrieve(slug:) ⇒ Object
11 12 13 14 |
# File 'lib/buildkite/models/organization.rb', line 11 def retrieve(slug:) response = Client.get_request("organizations/#{slug}") Organization.new(response.body) end |