Class: Spaceship::Tunes::IAPFamilyList

Inherits:
TunesBase show all
Defined in:
spaceship/lib/spaceship/tunes/iap_family_list.rb

Instance Attribute Summary collapse

Attributes inherited from Base

#client, #raw_data

Instance Method Summary collapse

Methods inherited from TunesBase

client

Methods inherited from Base

attr_accessor, attr_mapping, attributes, #attributes, factory, #initialize, #inspect, mapping_module, method_missing, set_client, #setup, #to_s

Constructor Details

This class inherits a constructor from Spaceship::Base

Instance Attribute Details

#applicationSpaceship::Tunes::Application

Returns A reference to the application.

Returns:



7
8
9
# File 'spaceship/lib/spaceship/tunes/iap_family_list.rb', line 7

def application
  @application
end

#family_idIntger

Returns the Family Id.

Returns:

  • (Intger)

    the Family Id



13
14
15
# File 'spaceship/lib/spaceship/tunes/iap_family_list.rb', line 13

def family_id
  @family_id
end

#nameString

Returns the family name.

Returns:

  • (String)

    the family name



10
11
12
# File 'spaceship/lib/spaceship/tunes/iap_family_list.rb', line 10

def name
  @name
end

Instance Method Details

#editObject

return a editable family object



21
22
23
24
25
# File 'spaceship/lib/spaceship/tunes/iap_family_list.rb', line 21

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