Class: Muvy::Download
- Inherits:
-
Object
- Object
- Muvy::Download
- Defined in:
- lib/muvy/download.rb
Instance Attribute Summary collapse
-
#media ⇒ Object
readonly
Returns the value of attribute media.
-
#options ⇒ Object
readonly
Returns the value of attribute options.
-
#settings ⇒ Object
readonly
Returns the value of attribute settings.
Instance Method Summary collapse
-
#initialize(media, options = {}) ⇒ Download
constructor
A new instance of Download.
- #run ⇒ Object
Constructor Details
#initialize(media, options = {}) ⇒ Download
Returns a new instance of Download.
9 10 11 12 |
# File 'lib/muvy/download.rb', line 9 def initialize(media, = {}) @media = media = end |
Instance Attribute Details
#media ⇒ Object (readonly)
Returns the value of attribute media.
7 8 9 |
# File 'lib/muvy/download.rb', line 7 def media @media end |
#options ⇒ Object (readonly)
Returns the value of attribute options.
7 8 9 |
# File 'lib/muvy/download.rb', line 7 def end |
#settings ⇒ Object (readonly)
Returns the value of attribute settings.
7 8 9 |
# File 'lib/muvy/download.rb', line 7 def settings @settings end |
Instance Method Details
#run ⇒ Object
14 15 16 17 18 |
# File 'lib/muvy/download.rb', line 14 def run @settings = merge_settings download_video send_video end |