Class: Buildkite::Organization
- Inherits:
-
Object
- Object
- OpenStruct
- Object
- Buildkite::Organization
show all
- Defined in:
- lib/buildkite/models/organization.rb
Class Method Summary
collapse
Methods inherited from Object
#initialize, #to_ostruct
Class Method Details
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
|