Class: Spaceship::Tunes::AppVersionGeneratedPromocodes
- Defined in:
- spaceship/lib/spaceship/tunes/app_version_generated_promocodes.rb
Overview
Represents the information about the generation of promocodes
Instance Attribute Summary collapse
-
#codes ⇒ Object
readonly
Array of String.
- #effective_date ⇒ Object readonly
-
#expiration_date ⇒ Object
readonly
Returns the value of attribute expiration_date.
-
#username ⇒ Object
readonly
Returns the value of attribute username.
-
#version ⇒ Object
readonly
the AppVersionPromocodes this relates to.
Attributes inherited from Base
Instance Method Summary collapse
Methods inherited from TunesBase
Methods inherited from Base
attr_accessor, attr_mapping, attributes, #attributes, factory, #initialize, #inspect, mapping_module, method_missing, set_client, #to_s
Constructor Details
This class inherits a constructor from Spaceship::Base
Instance Attribute Details
#codes ⇒ Object (readonly)
Array of String
14 15 16 |
# File 'spaceship/lib/spaceship/tunes/app_version_generated_promocodes.rb', line 14 def codes @codes end |
#effective_date ⇒ Object (readonly)
8 9 10 |
# File 'spaceship/lib/spaceship/tunes/app_version_generated_promocodes.rb', line 8 def effective_date @effective_date end |
#expiration_date ⇒ Object (readonly)
Returns the value of attribute expiration_date.
9 10 11 |
# File 'spaceship/lib/spaceship/tunes/app_version_generated_promocodes.rb', line 9 def expiration_date @expiration_date end |
#username ⇒ Object (readonly)
Returns the value of attribute username.
10 11 12 |
# File 'spaceship/lib/spaceship/tunes/app_version_generated_promocodes.rb', line 10 def username @username end |
#version ⇒ Object (readonly)
the AppVersionPromocodes this relates to
12 13 14 |
# File 'spaceship/lib/spaceship/tunes/app_version_generated_promocodes.rb', line 12 def version @version end |
Instance Method Details
#setup ⇒ Object
22 23 24 25 |
# File 'spaceship/lib/spaceship/tunes/app_version_generated_promocodes.rb', line 22 def setup @version = Tunes::AppVersionPromocodes.factory(raw_data['version']) @codes = raw_data['codes'] end |