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.14.2 spaceship/lib/spaceship/tunes/app_version_generated_promocodes.rb
fastlane-2.14.1 spaceship/lib/spaceship/tunes/app_version_generated_promocodes.rb
fastlane-2.14.0 spaceship/lib/spaceship/tunes/app_version_generated_promocodes.rb
fastlane-2.13.0 spaceship/lib/spaceship/tunes/app_version_generated_promocodes.rb
fastlane-2.12.0 spaceship/lib/spaceship/tunes/app_version_generated_promocodes.rb
fastlane-2.11.0 spaceship/lib/spaceship/tunes/app_version_generated_promocodes.rb
fastlane-2.10.0 spaceship/lib/spaceship/tunes/app_version_generated_promocodes.rb
fastlane-2.9.0 spaceship/lib/spaceship/tunes/app_version_generated_promocodes.rb
fastlane-2.8.0 spaceship/lib/spaceship/tunes/app_version_generated_promocodes.rb
fastlane-2.7.0 spaceship/lib/spaceship/tunes/app_version_generated_promocodes.rb
fastlane-2.6.0 spaceship/lib/spaceship/tunes/app_version_generated_promocodes.rb
fastlane-2.5.0 spaceship/lib/spaceship/tunes/app_version_generated_promocodes.rb
fastlane-2.4.0 spaceship/lib/spaceship/tunes/app_version_generated_promocodes.rb
fastlane-2.3.1 spaceship/lib/spaceship/tunes/app_version_generated_promocodes.rb
fastlane-2.3.0 spaceship/lib/spaceship/tunes/app_version_generated_promocodes.rb
fastlane-2.2.0 spaceship/lib/spaceship/tunes/app_version_generated_promocodes.rb
fastlane-2.1.3 spaceship/lib/spaceship/tunes/app_version_generated_promocodes.rb
fastlane-2.1.2 spaceship/lib/spaceship/tunes/app_version_generated_promocodes.rb
fastlane-2.1.1 spaceship/lib/spaceship/tunes/app_version_generated_promocodes.rb
spaceship-1.0.0 lib/spaceship/tunes/app_version_generated_promocodes.rb