Class: Spaceship::Tunes::AppVersionPromocodes

Inherits:
TunesBase show all
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

Attributes inherited from Base

#client, #raw_data

Class Method Summary collapse

Methods inherited from TunesBase

client

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_idObject (readonly)

Returns:



6
7
8
# File 'lib/spaceship/tunes/app_version_promocodes.rb', line 6

def app_id
  @app_id
end

#app_nameObject (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_nameObject (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_codesObject (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_codesObject (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

#platformObject (readonly)

Returns the value of attribute platform.



9
10
11
# File 'lib/spaceship/tunes/app_version_promocodes.rb', line 9

def platform
  @platform
end

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