Class: Buildkite::Organization

Inherits:
Object
  • Object
show all
Defined in:
lib/buildkite/models/organization.rb

Class Method Summary collapse

Methods inherited from Object

#initialize, #to_ostruct

Constructor Details

This class inherits a constructor from Buildkite::Object

Class Method Details

.listObject



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