class Spaceship::Portal::CloudContainer
Represents an iCloud Container of the Apple Dev Portal
Attributes
@return (Bool) Is the container deletable?
@return (Bool) Is the container editable?
@return (String
) The identifier assigned to this container @example
"iCloud.com.example.application"
@return (String
) The name of this container @example
"iCloud com example application"
@return (String
) The prefix assigned to this container @example
"9J57U9392R"
@return (String
) Status of the container @example
"current"
Public Class Methods
@return (Array
) Returns all iCloud containers available for this account
# File spaceship/lib/spaceship/portal/cloud_container.rb, line 50 def all client.cloud_containers.map { |container| self.factory(container) } end
Creates a new iCloud Container on the Apple Dev Portal
@param identifier [String] the identifier to assign to this container @param name [String] the name of the container @return (CloudContainer
) The container you just created
# File spaceship/lib/spaceship/portal/cloud_container.rb, line 59 def create!(identifier: nil, name: nil) new_container = client.create_cloud_container!(name, identifier) self.new(new_container) end
Find a specific iCloud Container identifier @return (CloudContainer
) The iCloud Container you're looking for. This is nil if the container can't be found.
# File spaceship/lib/spaceship/portal/cloud_container.rb, line 66 def find(identifier) all.find do |container| container.identifier == identifier end end