Sha256: bcf1c7669797d6d0509b3d51a0e89f5cd34d28d29879eeccccaff693c951dd7f

Contents?: true

Size: 713 Bytes

Versions: 10

Compression:

Stored size: 713 Bytes

Contents

require_relative 'iap_family_details'

module Spaceship
  module Tunes
    class IAPFamilyList < TunesBase
      # @return (Spaceship::Tunes::Application) A reference to the application
      attr_accessor :application

      # @return (String) the family name
      attr_accessor :name

      # @return (Integer) the Family Id
      attr_accessor :family_id

      attr_mapping({
        'id' => :family_id,
        'name.value' => :name
      })

      # return a editable family object
      def edit
        attrs = client.load_iap_family(app_id: application.apple_id, family_id: self.family_id)
        attrs[:application] = application
        Tunes::IAPFamilyDetails.new(attrs)
      end
    end
  end
end

Version data entries

10 entries across 10 versions & 1 rubygems

Version Path
fastlane-2.225.0 spaceship/lib/spaceship/tunes/iap_family_list.rb
fastlane-2.224.0 spaceship/lib/spaceship/tunes/iap_family_list.rb
fastlane-2.223.1 spaceship/lib/spaceship/tunes/iap_family_list.rb
fastlane-2.223.0 spaceship/lib/spaceship/tunes/iap_family_list.rb
fastlane-2.222.0 spaceship/lib/spaceship/tunes/iap_family_list.rb
fastlane-2.221.1 spaceship/lib/spaceship/tunes/iap_family_list.rb
fastlane-2.221.0 spaceship/lib/spaceship/tunes/iap_family_list.rb
fastlane-2.220.0 spaceship/lib/spaceship/tunes/iap_family_list.rb
fastlane-2.219.0 spaceship/lib/spaceship/tunes/iap_family_list.rb
fastlane-2.218.0 spaceship/lib/spaceship/tunes/iap_family_list.rb