Class: EncodingDotCom::MediaListItem
- Inherits:
-
Object
- Object
- EncodingDotCom::MediaListItem
- Defined in:
- lib/encoding_dot_com/media_list_item.rb
Overview
Represents a video or image in the encoding.com queue
Instance Attribute Summary collapse
-
#create_date ⇒ Object
readonly
Returns the value of attribute create_date.
-
#finish_date ⇒ Object
readonly
Returns the value of attribute finish_date.
-
#media_file ⇒ Object
readonly
Returns the value of attribute media_file.
-
#media_id ⇒ Object
readonly
Returns the value of attribute media_id.
-
#media_status ⇒ Object
readonly
Returns the value of attribute media_status.
-
#start_date ⇒ Object
readonly
Returns the value of attribute start_date.
Instance Method Summary collapse
-
#initialize(node) ⇒ MediaListItem
constructor
Creates a MediaListItem, given a <media> Nokogiri::XML::Node.
Constructor Details
#initialize(node) ⇒ MediaListItem
Creates a MediaListItem, given a <media> Nokogiri::XML::Node
See the encoding.com documentation for GetMediaList for more details
12 13 14 15 16 17 18 19 |
# File 'lib/encoding_dot_com/media_list_item.rb', line 12 def initialize(node) @media_file = (node / "mediafile").text @media_id = (node / "mediaid").text.to_i @media_status = (node / "mediastatus").text @create_date = parse_time_node(node / "createdate") @start_date = parse_time_node(node / "startdate") @finish_date = parse_time_node(node / "finishdate") end |
Instance Attribute Details
#create_date ⇒ Object (readonly)
Returns the value of attribute create_date.
7 8 9 |
# File 'lib/encoding_dot_com/media_list_item.rb', line 7 def create_date @create_date end |
#finish_date ⇒ Object (readonly)
Returns the value of attribute finish_date.
7 8 9 |
# File 'lib/encoding_dot_com/media_list_item.rb', line 7 def finish_date @finish_date end |
#media_file ⇒ Object (readonly)
Returns the value of attribute media_file.
7 8 9 |
# File 'lib/encoding_dot_com/media_list_item.rb', line 7 def media_file @media_file end |
#media_id ⇒ Object (readonly)
Returns the value of attribute media_id.
7 8 9 |
# File 'lib/encoding_dot_com/media_list_item.rb', line 7 def media_id @media_id end |
#media_status ⇒ Object (readonly)
Returns the value of attribute media_status.
7 8 9 |
# File 'lib/encoding_dot_com/media_list_item.rb', line 7 def media_status @media_status end |
#start_date ⇒ Object (readonly)
Returns the value of attribute start_date.
7 8 9 |
# File 'lib/encoding_dot_com/media_list_item.rb', line 7 def start_date @start_date end |