class Spaceship::Tunes::AppVersionGeneratedPromocodes

Represents the information about the generation of promocodes

def factory(attrs)

This is used to create a new object based on the server response.
Create a new object based on a hash.
def factory(attrs)
  obj = self.new(attrs)
  return obj
end

def setup

def setup
  @version = Tunes::AppVersionPromocodes.factory(raw_data['version'])
  @codes = raw_data['codes']
end