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
fastlane-2.1.0 spaceship/lib/spaceship/tunes/app_version_generated_promocodes.rb
fastlane-2.0.5 spaceship/lib/spaceship/tunes/app_version_generated_promocodes.rb
fastlane-2.0.4 spaceship/lib/spaceship/tunes/app_version_generated_promocodes.rb
fastlane-2.0.3 spaceship/lib/spaceship/tunes/app_version_generated_promocodes.rb
fastlane-2.0.2 spaceship/lib/spaceship/tunes/app_version_generated_promocodes.rb
fastlane-2.0.1 spaceship/lib/spaceship/tunes/app_version_generated_promocodes.rb
spaceship-0.39.0 lib/spaceship/tunes/app_version_generated_promocodes.rb
spaceship-0.38.5 lib/spaceship/tunes/app_version_generated_promocodes.rb
spaceship-0.38.4 lib/spaceship/tunes/app_version_generated_promocodes.rb
spaceship-0.38.3 lib/spaceship/tunes/app_version_generated_promocodes.rb
spaceship-0.38.2 lib/spaceship/tunes/app_version_generated_promocodes.rb
spaceship-0.38.1 lib/spaceship/tunes/app_version_generated_promocodes.rb
spaceship-0.38.0 lib/spaceship/tunes/app_version_generated_promocodes.rb
spaceship-0.37.0 lib/spaceship/tunes/app_version_generated_promocodes.rb
spaceship-0.36.2 lib/spaceship/tunes/app_version_generated_promocodes.rb
spaceship-0.36.1 lib/spaceship/tunes/app_version_generated_promocodes.rb
spaceship-0.36.0 lib/spaceship/tunes/app_version_generated_promocodes.rb
spaceship-0.35.0 lib/spaceship/tunes/app_version_generated_promocodes.rb
spaceship-0.34.3 lib/spaceship/tunes/app_version_generated_promocodes.rb
spaceship-0.34.2 lib/spaceship/tunes/app_version_generated_promocodes.rb