Class: Video
- Inherits:
-
Object
- Object
- Video
- Defined in:
- lib/syndicate/lib/video.rb
Constant Summary collapse
- VALID_EXTENSIONS =
['.mp4', '.avi', '.mkv']
Instance Attribute Summary collapse
-
#description ⇒ Object
readonly
Returns the value of attribute description.
-
#path ⇒ Object
readonly
Returns the value of attribute path.
-
#thumbnail ⇒ Object
readonly
Returns the value of attribute thumbnail.
-
#title ⇒ Object
readonly
Returns the value of attribute title.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(args = {}) ⇒ Video
constructor
A new instance of Video.
Constructor Details
#initialize(args = {}) ⇒ Video
Returns a new instance of Video.
20 21 22 23 |
# File 'lib/syndicate/lib/video.rb', line 20 def initialize(args = {}) @title = args[:title] @path = args[:path] end |
Instance Attribute Details
#description ⇒ Object (readonly)
Returns the value of attribute description.
4 5 6 |
# File 'lib/syndicate/lib/video.rb', line 4 def description @description end |
#path ⇒ Object (readonly)
Returns the value of attribute path.
4 5 6 |
# File 'lib/syndicate/lib/video.rb', line 4 def path @path end |
#thumbnail ⇒ Object (readonly)
Returns the value of attribute thumbnail.
4 5 6 |
# File 'lib/syndicate/lib/video.rb', line 4 def thumbnail @thumbnail end |
#title ⇒ Object (readonly)
Returns the value of attribute title.
4 5 6 |
# File 'lib/syndicate/lib/video.rb', line 4 def title @title end |