Class: Spaceship::Tunes::PricingInfo

Inherits:
TunesBase show all
Defined in:
spaceship/lib/spaceship/tunes/pricing_info.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

#countryString

Returns name of the country, e.g. “United States”.

Returns:

  • (String)

    name of the country, e.g. “United States”


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

def country
  @country
end

#country_codeString

Returns country code, e.g. “US”.

Returns:

  • (String)

    country code, e.g. “US”


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

def country_code
  @country_code
end

#currency_codeString

Returns currency code, e.g. “USD”.

Returns:

  • (String)

    currency code, e.g. “USD”


16
17
18
# File 'spaceship/lib/spaceship/tunes/pricing_info.rb', line 16

def currency_code
  @currency_code
end

#currency_symbolString

Returns currency symbol, e.g. “$”.

Returns:

  • (String)

    currency symbol, e.g. “$”


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

def currency_symbol
  @currency_symbol
end

#f_retail_priceString

Returns formatted customer price, e.g. “$0.00”.

Returns:

  • (String)

    formatted customer price, e.g. “$0.00”


25
26
27
# File 'spaceship/lib/spaceship/tunes/pricing_info.rb', line 25

def f_retail_price
  @f_retail_price
end

#f_wholesale_priceString

Returns formatted net proceedings, e.g. “$0.00”.

Returns:

  • (String)

    formatted net proceedings, e.g. “$0.00”


28
29
30
# File 'spaceship/lib/spaceship/tunes/pricing_info.rb', line 28

def f_wholesale_price
  @f_wholesale_price
end

#retail_priceNumber

Returns customer price.

Returns:

  • (Number)

    customer price


22
23
24
# File 'spaceship/lib/spaceship/tunes/pricing_info.rb', line 22

def retail_price
  @retail_price
end

#wholesale_priceNumber

Returns net proceedings for the developer.

Returns:

  • (Number)

    net proceedings for the developer


19
20
21
# File 'spaceship/lib/spaceship/tunes/pricing_info.rb', line 19

def wholesale_price
  @wholesale_price
end