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.29.1 lib/spaceship/tunes/app_version_generated_promocodes.rb
spaceship-0.29.0 lib/spaceship/tunes/app_version_generated_promocodes.rb
spaceship-0.28.0 lib/spaceship/tunes/app_version_generated_promocodes.rb
spaceship-0.27.2 lib/spaceship/tunes/app_version_generated_promocodes.rb
spaceship-0.27.1 lib/spaceship/tunes/app_version_generated_promocodes.rb
spaceship-0.27.0 lib/spaceship/tunes/app_version_generated_promocodes.rb
spaceship-0.26.3 lib/spaceship/tunes/app_version_generated_promocodes.rb
spaceship-0.26.2 lib/spaceship/tunes/app_version_generated_promocodes.rb
spaceship-0.26.1 lib/spaceship/tunes/app_version_generated_promocodes.rb
spaceship-0.26.0 lib/spaceship/tunes/app_version_generated_promocodes.rb
spaceship-0.25.1 lib/spaceship/tunes/app_version_generated_promocodes.rb
spaceship-0.25.0 lib/spaceship/tunes/app_version_generated_promocodes.rb