Class: Spaceship::Tunes::AppVersionGeneratedPromocodes

Inherits:
TunesBase
  • Object
show all
Defined in:
spaceship/lib/spaceship/tunes/app_version_generated_promocodes.rb

Overview

Represents the information about the generation of promocodes

Instance Attribute Summary collapse

Attributes inherited from Base

#client, #raw_data

Instance Method Summary collapse

Methods inherited from TunesBase

client

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

#codesObject (readonly)

Array of String



14
15
16
# File 'spaceship/lib/spaceship/tunes/app_version_generated_promocodes.rb', line 14

def codes
  @codes
end

#effective_dateObject (readonly)

Returns:



8
9
10
# File 'spaceship/lib/spaceship/tunes/app_version_generated_promocodes.rb', line 8

def effective_date
  @effective_date
end

#expiration_dateObject (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

#usernameObject (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

#versionObject (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

#setupObject



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