Class: Spaceship::Tunes::AppTrailer

Inherits:
TunesBase show all
Defined in:
spaceship/lib/spaceship/tunes/app_trailer.rb

Overview

Represents a preview video hosted on iTunes Connect. Used for icons, screenshots, etc

Instance Attribute Summary collapse

Attributes inherited from Base

#client, #raw_data

Instance Method Summary collapse

Methods inherited from TunesBase

client

Methods inherited from Base

attr_accessor, attr_mapping, attributes, #attributes, factory, #initialize, #inspect, mapping_module, method_missing, set_client, #setup, #to_s

Constructor Details

This class inherits a constructor from Spaceship::Base

Instance Attribute Details

#descriptionXMLObject

Returns the value of attribute descriptionXML.



11
12
13
# File 'spaceship/lib/spaceship/tunes/app_trailer.rb', line 11

def descriptionXML
  @descriptionXML
end

#device_typeObject

Returns the value of attribute device_type.



21
22
23
# File 'spaceship/lib/spaceship/tunes/app_trailer.rb', line 21

def device_type
  @device_type
end

#full_sized_preview_image_urlObject

Returns the value of attribute full_sized_preview_image_url.



19
20
21
# File 'spaceship/lib/spaceship/tunes/app_trailer.rb', line 19

def full_sized_preview_image_url
  @full_sized_preview_image_url
end

#languageObject

Returns the value of attribute language.



23
24
25
# File 'spaceship/lib/spaceship/tunes/app_trailer.rb', line 23

def language
  @language
end

#picture_asset_tokenObject

Returns the value of attribute picture_asset_token.



9
10
11
# File 'spaceship/lib/spaceship/tunes/app_trailer.rb', line 9

def picture_asset_token
  @picture_asset_token
end

#preview_frame_time_codeObject

Returns the value of attribute preview_frame_time_code.



13
14
15
# File 'spaceship/lib/spaceship/tunes/app_trailer.rb', line 13

def preview_frame_time_code
  @preview_frame_time_code
end

#preview_image_urlObject

Returns the value of attribute preview_image_url.



17
18
19
# File 'spaceship/lib/spaceship/tunes/app_trailer.rb', line 17

def preview_image_url
  @preview_image_url
end

#video_asset_tokenObject

Returns the value of attribute video_asset_token.



7
8
9
# File 'spaceship/lib/spaceship/tunes/app_trailer.rb', line 7

def video_asset_token
  @video_asset_token
end

#video_urlObject

Returns the value of attribute video_url.



15
16
17
# File 'spaceship/lib/spaceship/tunes/app_trailer.rb', line 15

def video_url
  @video_url
end

Instance Method Details

#reset!(attrs = {}) ⇒ Object



38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
# File 'spaceship/lib/spaceship/tunes/app_trailer.rb', line 38

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