Sha256: ddb800813ce2f8827cd9aeb007614ccbcc6772fc01eef86b3b3ef0e6d1121520

Contents?: true

Size: 945 Bytes

Versions: 72

Compression:

Stored size: 945 Bytes

Contents

module Spaceship
  module Tunes
    # Represents the information about the generation of promocodes
    class AppVersionGeneratedPromocodes < TunesBase
      # @return
      attr_reader :effective_date
      attr_reader :expiration_date
      attr_reader :username
      # the AppVersionPromocodes this relates to
      attr_reader :version
      # Array of String
      attr_reader :codes

      attr_mapping({
        'effectiveDate' => :effective_date,
        'expirationDate' => :expiration_date,
        'username' => :username
      })

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

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

Version data entries

72 entries across 72 versions & 2 rubygems

Version Path
spaceship-0.34.1 lib/spaceship/tunes/app_version_generated_promocodes.rb
spaceship-0.34.0 lib/spaceship/tunes/app_version_generated_promocodes.rb
spaceship-0.33.0 lib/spaceship/tunes/app_version_generated_promocodes.rb
spaceship-0.32.4 lib/spaceship/tunes/app_version_generated_promocodes.rb
spaceship-0.32.3 lib/spaceship/tunes/app_version_generated_promocodes.rb
spaceship-0.32.2 lib/spaceship/tunes/app_version_generated_promocodes.rb
spaceship-0.32.1 lib/spaceship/tunes/app_version_generated_promocodes.rb
spaceship-0.32.0 lib/spaceship/tunes/app_version_generated_promocodes.rb
spaceship-0.31.10 lib/spaceship/tunes/app_version_generated_promocodes.rb
spaceship-0.31.9 lib/spaceship/tunes/app_version_generated_promocodes.rb
spaceship-0.31.8 lib/spaceship/tunes/app_version_generated_promocodes.rb
spaceship-0.31.7 lib/spaceship/tunes/app_version_generated_promocodes.rb
spaceship-0.31.6 lib/spaceship/tunes/app_version_generated_promocodes.rb
spaceship-0.31.5 lib/spaceship/tunes/app_version_generated_promocodes.rb
spaceship-0.31.4 lib/spaceship/tunes/app_version_generated_promocodes.rb
spaceship-0.31.3 lib/spaceship/tunes/app_version_generated_promocodes.rb
spaceship-0.31.2 lib/spaceship/tunes/app_version_generated_promocodes.rb
spaceship-0.31.1 lib/spaceship/tunes/app_version_generated_promocodes.rb
spaceship-0.31.0 lib/spaceship/tunes/app_version_generated_promocodes.rb
spaceship-0.30.0 lib/spaceship/tunes/app_version_generated_promocodes.rb