Module: SampleFile
- Defined in:
- lib/sample_file.rb,
lib/sample_file/base.rb,
lib/sample_file/image.rb,
lib/sample_file/video.rb,
lib/sample_file/version.rb
Defined Under Namespace
Classes: Base, Image, Video
Constant Summary
collapse
- VERSION =
"0.1.0"
Class Method Summary
collapse
Class Method Details
.image(type = 'png', opts = {}) ⇒ Object
12
13
14
|
# File 'lib/sample_file.rb', line 12
def image(type='png', opts={})
Image.new(type, opts).file
end
|
.image_path(type = 'png', opts = {}) ⇒ Object
16
17
18
|
# File 'lib/sample_file.rb', line 16
def image_path(type='png', opts={})
Image.new(type, opts).file_path
end
|
.video(type = 'h264', opts = {}) ⇒ Object
20
21
22
|
# File 'lib/sample_file.rb', line 20
def video(type='h264', opts={})
Video.new(type, opts).file
end
|
.video_path(type = 'h264', opts = {}) ⇒ Object
24
25
26
|
# File 'lib/sample_file.rb', line 24
def video_path(type='h264', opts={})
Video.new(type, opts).file_path
end
|