Sha256: 9c60d8b31342791a5785d7c93c32667310f9d5bfaf059c1344dad15888447d13

Contents?: true

Size: 1.63 KB

Versions: 493

Compression:

Stored size: 1.63 KB

Contents

require_relative 'tunes_base'

module Spaceship
  module Tunes
    # Represents a preview video hosted on App Store Connect. Used for icons, screenshots, etc
    class AppTrailer < TunesBase
      attr_accessor :video_asset_token

      attr_accessor :picture_asset_token

      attr_accessor :descriptionXML

      attr_accessor :preview_frame_time_code

      attr_accessor :video_url

      attr_accessor :preview_image_url

      attr_accessor :full_sized_preview_image_url

      attr_accessor :device_type

      attr_accessor :language

      attr_mapping(
        'videoAssetToken' => :video_asset_token,
        'pictureAssetToken' => :picture_asset_token,
        'descriptionXML' => :descriptionXML,
        'previewFrameTimeCode' => :preview_frame_time_code,
        'isPortrait' => :is_portrait,
        'videoUrl' => :video_url,
        'previewImageUrl' => :preview_image_url,
        'fullSizedPreviewImageUrl' => :full_sized_preview_image_url,
        'contentType' => :content_type,
        'videoStatus' => :video_status
      )

      def reset!(attrs = {})
        update_raw_data!({
          video_asset_token: nil,
          picture_asset_token: nil,
          descriptionXML: nil,
          preview_frame_time_code: nil,
          is_portrait: nil,
          video_url: nil,
          preview_image_url: nil,
          full_sized_preview_image_url: nil,
          content_type: nil,
          video_status: nil,
          device_type: nil,
          language: nil
         }.merge(attrs))
      end

      private

      def update_raw_data!(hash)
        hash.each do |k, v|
          self.send("#{k}=", v)
        end
      end
    end
  end
end

Version data entries

493 entries across 493 versions & 5 rubygems

Version Path
fastlane-2.122.0.beta.20190427200023 spaceship/lib/spaceship/tunes/app_trailer.rb
fastlane-2.122.0.beta.20190426200020 spaceship/lib/spaceship/tunes/app_trailer.rb
fastlane-2.122.0.beta.20190425200104 spaceship/lib/spaceship/tunes/app_trailer.rb
fastlane-2.122.0.beta.20190424200026 spaceship/lib/spaceship/tunes/app_trailer.rb
fastlane-2.122.0.beta.20190423200058 spaceship/lib/spaceship/tunes/app_trailer.rb
fastlane-2.121.1 spaceship/lib/spaceship/tunes/app_trailer.rb
fastlane-2.121.0 spaceship/lib/spaceship/tunes/app_trailer.rb
fastlane-2.121.0.beta.20190422200029 spaceship/lib/spaceship/tunes/app_trailer.rb
fastlane-2.121.0.beta.20190421200026 spaceship/lib/spaceship/tunes/app_trailer.rb
fastlane-2.121.0.beta.20190420200032 spaceship/lib/spaceship/tunes/app_trailer.rb
fastlane-2.121.0.beta.20190419200010 spaceship/lib/spaceship/tunes/app_trailer.rb
fastlane-2.121.0.beta.20190418200030 spaceship/lib/spaceship/tunes/app_trailer.rb
fastlane-2.121.0.beta.20190417200018 spaceship/lib/spaceship/tunes/app_trailer.rb
fastlane-2.121.0.beta.20190416200048 spaceship/lib/spaceship/tunes/app_trailer.rb
fastlane-2.121.0.beta.20190415200032 spaceship/lib/spaceship/tunes/app_trailer.rb
fastlane-2.121.0.beta.20190414200028 spaceship/lib/spaceship/tunes/app_trailer.rb
fastlane-2.121.0.beta.20190413200059 spaceship/lib/spaceship/tunes/app_trailer.rb
fastlane-2.121.0.beta.20190412200021 spaceship/lib/spaceship/tunes/app_trailer.rb
fastlane-2.121.0.beta.20190411200023 spaceship/lib/spaceship/tunes/app_trailer.rb
fastlane-2.121.0.beta.20190410200018 spaceship/lib/spaceship/tunes/app_trailer.rb