class Spaceship::Portal::AppGroup

Represents an app group of the Apple Dev Portal

def all

Returns:
  • (Array) - Returns all app groups available for this account
def all
  client.app_groups.map { |group| self.factory(group) }
end

def create!(group_id: nil, name: nil)

Returns:
  • (AppGroup) - The group you just created

Parameters:
  • name (String) -- the name of the group
  • group_id (String) -- the identifier to assign to this group
def create!(group_id: nil, name: nil)
  new_group = client.create_app_group!(name, group_id)
  self.new(new_group)
end

def delete!

Returns:
  • (AppGroup) - The app group you just deletd
def delete!
  client.delete_app_group!(app_group_id)
  self
end

def factory(attrs)

This is used to create a new object based on the server response.
Create a new object based on a hash.
def factory(attrs)
  self.new(attrs)
end

def find(group_id)

Returns:
  • (AppGroup) - The app group you're looking for. This is nil if the app group can't be found.
def find(group_id)
  all.find do |group|
    group.group_id == group_id
  end
end