class Spaceship::Tunes::AppVersionGeneratedPromocodes
Represents the information about the generation of promocodes
Attributes
codes[R]
Array of String
effective_date[R]
@return
expiration_date[R]
username[R]
version[R]
the AppVersionPromocodes
this relates to
Public Class Methods
factory(attrs)
click to toggle source
Create a new object based on a hash. This is used to create a new object based on the server response.
# File lib/spaceship/tunes/app_version_generated_promocodes.rb, line 23 def factory(attrs) obj = self.new(attrs) return obj end
Public Instance Methods
setup()
click to toggle source
# File lib/spaceship/tunes/app_version_generated_promocodes.rb, line 29 def setup @version = Tunes::AppVersionPromocodes.factory(raw_data['version']) @codes = raw_data['codes'] end