Class: SemaphoreciApi::Org

Inherits:
Object
  • Object
show all
Defined in:
lib/semaphoreci_api/client.rb

Overview

Get basic information about your organizations

Instance Method Summary collapse

Constructor Details

#initialize(client) ⇒ Org

Returns a new instance of Org



119
120
121
# File 'lib/semaphoreci_api/client.rb', line 119

def initialize(client)
  @client = client
end

Instance Method Details

#info(org_username) ⇒ Object

Info for existing organization.

Parameters:

  • org_username:

    unique username of organization



126
127
128
# File 'lib/semaphoreci_api/client.rb', line 126

def info(org_username)
  @client.org.info(org_username)
end

#listObject

List existing organizations.



131
132
133
# File 'lib/semaphoreci_api/client.rb', line 131

def list()
  @client.org.list()
end