Class: Spaceship::Tunes::PricingInfo
- Defined in:
- lib/spaceship/tunes/pricing_tier.rb
Instance Attribute Summary collapse
-
#country ⇒ String
Name of the country, e.g.
-
#country_code ⇒ String
Country code, e.g.
-
#currency_code ⇒ String
Currency code, e.g.
-
#currency_symbol ⇒ String
Currency symbol, e.g.
-
#f_retail_price ⇒ String
Formatted customer price, e.g.
-
#f_wholesale_price ⇒ String
Formatted net proceedings, e.g.
-
#retail_price ⇒ Number
Customer price.
-
#wholesale_price ⇒ Number
Net proceedings for the developer.
Attributes inherited from Base
Class Method Summary collapse
-
.factory(attrs) ⇒ Object
Create a new object based on a hash.
Methods inherited from TunesBase
Methods inherited from Base
attr_accessor, attr_mapping, #attributes, attributes, #initialize, #inspect, mapping_module, method_missing, set_client, #setup, #to_s
Constructor Details
This class inherits a constructor from Spaceship::Base
Instance Attribute Details
#country ⇒ String
Returns name of the country, e.g. “United States”.
37 38 39 |
# File 'lib/spaceship/tunes/pricing_tier.rb', line 37 def country @country end |
#country_code ⇒ String
Returns country code, e.g. “US”.
40 41 42 |
# File 'lib/spaceship/tunes/pricing_tier.rb', line 40 def country_code @country_code end |
#currency_code ⇒ String
Returns currency code, e.g. “USD”.
46 47 48 |
# File 'lib/spaceship/tunes/pricing_tier.rb', line 46 def currency_code @currency_code end |
#currency_symbol ⇒ String
Returns currency symbol, e.g. “$”.
43 44 45 |
# File 'lib/spaceship/tunes/pricing_tier.rb', line 43 def currency_symbol @currency_symbol end |
#f_retail_price ⇒ String
Returns formatted customer price, e.g. “$0.00”.
55 56 57 |
# File 'lib/spaceship/tunes/pricing_tier.rb', line 55 def f_retail_price @f_retail_price end |
#f_wholesale_price ⇒ String
Returns formatted net proceedings, e.g. “$0.00”.
58 59 60 |
# File 'lib/spaceship/tunes/pricing_tier.rb', line 58 def f_wholesale_price @f_wholesale_price end |
#retail_price ⇒ Number
Returns customer price.
52 53 54 |
# File 'lib/spaceship/tunes/pricing_tier.rb', line 52 def retail_price @retail_price end |
#wholesale_price ⇒ Number
Returns net proceedings for the developer.
49 50 51 |
# File 'lib/spaceship/tunes/pricing_tier.rb', line 49 def wholesale_price @wholesale_price end |
Class Method Details
.factory(attrs) ⇒ Object
Create a new object based on a hash. This is used to create a new object based on the server response.
74 75 76 77 |
# File 'lib/spaceship/tunes/pricing_tier.rb', line 74 def factory(attrs) obj = self.new(attrs) return obj end |