Class: Spaceship::Tunes::AppVersionPromocodes
- Defined in:
- lib/spaceship/tunes/app_version_promocodes.rb
Overview
Represents the information about remaining number of promo codes for an app version
Instance Attribute Summary collapse
- #app_id ⇒ Object readonly
-
#app_name ⇒ Object
readonly
Returns the value of attribute app_name.
-
#contract_file_name ⇒ Object
readonly
Returns the value of attribute contract_file_name.
-
#maximum_number_of_codes ⇒ Object
readonly
Returns the value of attribute maximum_number_of_codes.
-
#number_of_codes ⇒ Object
readonly
Returns the value of attribute number_of_codes.
-
#platform ⇒ Object
readonly
Returns the value of attribute platform.
-
#version ⇒ Object
readonly
Returns the value of attribute version.
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
#app_id ⇒ Object (readonly)
6 7 8 |
# File 'lib/spaceship/tunes/app_version_promocodes.rb', line 6 def app_id @app_id end |
#app_name ⇒ Object (readonly)
Returns the value of attribute app_name.
7 8 9 |
# File 'lib/spaceship/tunes/app_version_promocodes.rb', line 7 def app_name @app_name end |
#contract_file_name ⇒ Object (readonly)
Returns the value of attribute contract_file_name.
12 13 14 |
# File 'lib/spaceship/tunes/app_version_promocodes.rb', line 12 def contract_file_name @contract_file_name end |
#maximum_number_of_codes ⇒ Object (readonly)
Returns the value of attribute maximum_number_of_codes.
11 12 13 |
# File 'lib/spaceship/tunes/app_version_promocodes.rb', line 11 def maximum_number_of_codes @maximum_number_of_codes end |
#number_of_codes ⇒ Object (readonly)
Returns the value of attribute number_of_codes.
10 11 12 |
# File 'lib/spaceship/tunes/app_version_promocodes.rb', line 10 def number_of_codes @number_of_codes end |
#platform ⇒ Object (readonly)
Returns the value of attribute platform.
9 10 11 |
# File 'lib/spaceship/tunes/app_version_promocodes.rb', line 9 def platform @platform end |
#version ⇒ Object (readonly)
Returns the value of attribute version.
8 9 10 |
# File 'lib/spaceship/tunes/app_version_promocodes.rb', line 8 def version @version 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.
27 28 29 30 |
# File 'lib/spaceship/tunes/app_version_promocodes.rb', line 27 def factory(attrs) obj = self.new(attrs) return obj end |