Sha256: 84b3190fb952422622c817396e4209bb77649d24b0e19f46128a42f3041c03a0

Contents?: true

Size: 1.63 KB

Versions: 168

Compression:

Stored size: 1.63 KB

Contents

require_relative 'tunes_base'

module Spaceship
  module Tunes
    # Represents a preview video hosted on iTunes 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

168 entries across 168 versions & 1 rubygems

Version Path
fastlane-2.95.0.beta.20180506050030 spaceship/lib/spaceship/tunes/app_trailer.rb
fastlane-2.95.0.beta.20180505050019 spaceship/lib/spaceship/tunes/app_trailer.rb
fastlane-2.95.0.beta.20180504050050 spaceship/lib/spaceship/tunes/app_trailer.rb
fastlane-2.95.0.beta.20180503050136 spaceship/lib/spaceship/tunes/app_trailer.rb
fastlane-2.95.0.beta.20180502050125 spaceship/lib/spaceship/tunes/app_trailer.rb
fastlane-2.94.0 spaceship/lib/spaceship/tunes/app_trailer.rb
fastlane-2.94.0.beta.20180501050030 spaceship/lib/spaceship/tunes/app_trailer.rb
fastlane-2.94.0.beta.20180430050033 spaceship/lib/spaceship/tunes/app_trailer.rb
fastlane-2.94.0.beta.20180429050039 spaceship/lib/spaceship/tunes/app_trailer.rb
fastlane-2.94.0.beta.20180428050023 spaceship/lib/spaceship/tunes/app_trailer.rb
fastlane-2.94.0.beta.20180427050031 spaceship/lib/spaceship/tunes/app_trailer.rb
fastlane-2.94.0.beta.20180426050049 spaceship/lib/spaceship/tunes/app_trailer.rb
fastlane-2.94.0.beta.20180425050017 spaceship/lib/spaceship/tunes/app_trailer.rb
fastlane-2.93.1 spaceship/lib/spaceship/tunes/app_trailer.rb
fastlane-2.94.0.beta.20180424050050 spaceship/lib/spaceship/tunes/app_trailer.rb
fastlane-2.93.0 spaceship/lib/spaceship/tunes/app_trailer.rb
fastlane-2.93.0.beta.20180423050019 spaceship/lib/spaceship/tunes/app_trailer.rb
fastlane-2.93.0.beta.20180422050034 spaceship/lib/spaceship/tunes/app_trailer.rb
fastlane-2.93.0.beta.20180421050012 spaceship/lib/spaceship/tunes/app_trailer.rb
fastlane-2.93.0.beta.20180420050021 spaceship/lib/spaceship/tunes/app_trailer.rb