Class: Spaceship::Tunes::PricingTier

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

Instance Attribute Summary collapse

Attributes inherited from Base

#client, #raw_data

Method Summary

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

#pricing_infoArray of Spaceship::Tunes::PricingInfo objects

Returns A list of all prices for the respective countries.

Returns:



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

def pricing_info
  @pricing_info
end

#tier_nameString

Returns Name of the tier (e.g. “Free” for Tier 0).

Returns:

  • (String)

    Name of the tier (e.g. “Free” for Tier 0)



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

def tier_name
  @tier_name
end

#tier_stemString

Returns Number of the price Tier (e.g. “0” for Tier 0 aka Free).

Returns:

  • (String)

    Number of the price Tier (e.g. “0” for Tier 0 aka Free)



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

def tier_stem
  @tier_stem
end