Class: Spaceship::Tunes::AppTrailer

Inherits:
TunesBase show all
Defined in:
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

Class Method Summary collapse

Instance Method Summary collapse

Methods inherited from TunesBase

client

Methods inherited from Base

attr_accessor, attr_mapping, #attributes, attributes, #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.



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

def descriptionXML
  @descriptionXML
end

#device_typeObject

Returns the value of attribute device_type.



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

def device_type
  @device_type
end

#full_sized_preview_image_urlObject

Returns the value of attribute full_sized_preview_image_url.



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

def full_sized_preview_image_url
  @full_sized_preview_image_url
end

#languageObject

Returns the value of attribute language.



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

def language
  @language
end

#picture_asset_tokenObject

Returns the value of attribute picture_asset_token.



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

def picture_asset_token
  @picture_asset_token
end

#preview_frame_time_codeObject

Returns the value of attribute preview_frame_time_code.



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

def preview_frame_time_code
  @preview_frame_time_code
end

#preview_image_urlObject

Returns the value of attribute preview_image_url.



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

def preview_image_url
  @preview_image_url
end

#video_asset_tokenObject

Returns the value of attribute video_asset_token.



5
6
7
# File 'lib/spaceship/tunes/app_trailer.rb', line 5

def video_asset_token
  @video_asset_token
end

#video_urlObject

Returns the value of attribute video_url.



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

def video_url
  @video_url
end

Class Method Details

.factory(attrs) ⇒ Object



37
38
39
# File 'lib/spaceship/tunes/app_trailer.rb', line 37

def factory(attrs)
  self.new(attrs)
end

Instance Method Details

#reset!(attrs = {}) ⇒ Object



42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
# File 'lib/spaceship/tunes/app_trailer.rb', line 42

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