Class: SnapDeploy::Provider::Heroku::API::Organization

Inherits:
Object
  • Object
show all
Defined in:
lib/snap_deploy/provider/heroku/api.rb

Overview

Organizations allow you to manage access to a shared group of applications across your development team.

Instance Method Summary collapse

Constructor Details

#initialize(client) ⇒ Organization

Returns a new instance of Organization.



1257
1258
1259
# File 'lib/snap_deploy/provider/heroku/api.rb', line 1257

def initialize(client)
  @client = client
end

Instance Method Details

#info(organization_name) ⇒ Object

Info for an organization.

Parameters:

  • organization_name:

    unique name of organization



1269
1270
1271
# File 'lib/snap_deploy/provider/heroku/api.rb', line 1269

def info(organization_name)
  @client.organization.info(organization_name)
end

#listObject

List organizations in which you are a member.



1262
1263
1264
# File 'lib/snap_deploy/provider/heroku/api.rb', line 1262

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

#update(organization_name, body) ⇒ Object

Set or unset the organization as your default organization.

Parameters:

  • organization_name:

    unique name of organization

  • body:

    the object to pass as the request payload



1277
1278
1279
# File 'lib/snap_deploy/provider/heroku/api.rb', line 1277

def update(organization_name, body)
  @client.organization.update(organization_name, body)
end