Class: ACTV::Video
Constant Summary
AssetSourceSystem::SOURCE_SYSTEM_HASH
Instance Attribute Summary collapse
Attributes inherited from Asset
#activityEndDate, #activityEndTime, #activityStartDate, #activityStartTime, #assetDsc, #assetGuid, #assetName, #authorName, #contactEmailAdr, #contactName, #contactPhone, #contactTxt, #createdDate, #currencyCd, #homePageUrlAdr, #isRecurring, #is_article, #is_event, #modifiedDate, #publishDate, #regReqGenderCd, #regReqMaxAge, #regReqMinAge, #showContact
Attributes inherited from Base
#attrs
Class Method Summary
collapse
Instance Method Summary
collapse
Methods inherited from Asset
#attribute_paths, #attributes, #category_is?, #channels, #components, #description, #description_by_type, #descriptions, #endurance_id, #evergreen?, #first_topic, #first_topic_name, #first_topic_path, from_response, #has_location?, #has_volume_based_price?, #image_by_name, #image_path, #image_with_placeholder, #images, inherited, #initialize, #is_article?, #is_event?, #kids?, #legacy_data, #location_path, #media_url, #meta_interest_paths, #meta_interests, #org_timezone, #organization, #place, #place_timezone, #prices, #recurrences, #references, #registration_status, #seo_url, #seo_urls, #sponsored?, #status, #sub_2_topic, #sub_2_topic_path, #sub_3_topic, #sub_3_topic_path, #sub_4_topic, #sub_4_topic_path, #sub_topic, #sub_topic_path, #summary, #tag_by_description, #tags, #topics, types, #version, #visible?
#kids_friendly_source_system?
Methods inherited from Identity
#==, #id, #initialize
Methods inherited from Base
#[], attr_reader, define_attribute_method, define_predicate_method, define_uri_method, #delete, from_response, #initialize, #memoize, #method_missing, object_attr_reader, #respond_to?, #to_hash, #update, uri_attr_reader
Constructor Details
This class inherits a constructor from ACTV::Asset
Dynamic Method Handling
This class handles dynamic methods through the method_missing method
in the class ACTV::Base
Instance Attribute Details
#sorCreateDtm ⇒ Object
Also known as:
publish_date
Returns the value of attribute sorCreateDtm.
5
6
7
|
# File 'lib/actv/video.rb', line 5
def sorCreateDtm
@sorCreateDtm
end
|
#urlAdr ⇒ Object
Returns the value of attribute urlAdr.
5
6
7
|
# File 'lib/actv/video.rb', line 5
def urlAdr
@urlAdr
end
|
Class Method Details
.valid?(response) ⇒ Boolean
Instance Method Details
#bitrate ⇒ Object
37
38
39
|
# File 'lib/actv/video.rb', line 37
def bitrate
@bitrate ||= tag_by_description 'bitrate'
end
|
#canonicalUrl ⇒ Object
Also known as:
canonical_url
41
42
43
|
# File 'lib/actv/video.rb', line 41
def canonicalUrl
@canonical_url ||= tag_by_description 'canonicalUrl'
end
|
#cover ⇒ Object
53
54
55
|
# File 'lib/actv/video.rb', line 53
def cover
image.url if image
end
|
#duration ⇒ Object
17
18
19
|
# File 'lib/actv/video.rb', line 17
def duration
@duration ||= tag_by_description 'duration'
end
|
#filesize ⇒ Object
33
34
35
|
# File 'lib/actv/video.rb', line 33
def filesize
@filesize ||= tag_by_description 'filesize'
end
|
#height ⇒ Object
21
22
23
|
# File 'lib/actv/video.rb', line 21
def height
@height ||= tag_by_description 'height'
end
|
#image ⇒ Object
Also known as:
thumbnail
47
48
49
|
# File 'lib/actv/video.rb', line 47
def image
@image ||= image_by_name 'videoImage'
end
|
#is_video? ⇒ Boolean
57
58
59
|
# File 'lib/actv/video.rb', line 57
def is_video?
true
end
|
#keywords ⇒ Object
13
14
15
|
# File 'lib/actv/video.rb', line 13
def keywords
@keywords ||= tag_by_description 'keywords'
end
|
#source ⇒ Object
61
62
63
64
|
# File 'lib/actv/video.rb', line 61
def source
urlAdr.to_s.sub! /http:\/\/rodale.videodownload.worldnow.com/i, 'https://rodale.videodownload.worldnow.com'
urlAdr
end
|
#type ⇒ Object
25
26
27
|
# File 'lib/actv/video.rb', line 25
def type
@type ||= tag_by_description 'type'
end
|
#width ⇒ Object
29
30
31
|
# File 'lib/actv/video.rb', line 29
def width
@width ||= tag_by_description 'width'
end
|