Class: Spaceship::Tunes::IAPFamilyList
- Defined in:
- spaceship/lib/spaceship/tunes/iap_family_list.rb
Instance Attribute Summary collapse
-
#application ⇒ Spaceship::Tunes::Application
A reference to the application.
-
#family_id ⇒ Integer
The Family Id.
-
#name ⇒ String
The family name.
Attributes inherited from Base
Instance Method Summary collapse
-
#edit ⇒ Object
return a editable family object.
Methods inherited from TunesBase
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
#application ⇒ Spaceship::Tunes::Application
Returns A reference to the application.
7 8 9 |
# File 'spaceship/lib/spaceship/tunes/iap_family_list.rb', line 7 def application @application end |
#family_id ⇒ Integer
Returns the Family Id.
13 14 15 |
# File 'spaceship/lib/spaceship/tunes/iap_family_list.rb', line 13 def family_id @family_id end |
#name ⇒ String
Returns the family name.
10 11 12 |
# File 'spaceship/lib/spaceship/tunes/iap_family_list.rb', line 10 def name @name end |
Instance Method Details
#edit ⇒ Object
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 |