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.0.1"

Class Method Summary collapse

Class Method Details

.image(type = 'png') ⇒ Object



8
9
10
# File 'lib/sample_file.rb', line 8

def image(type='png')
  Image.new.file(type)
end

.image_path(type = 'png') ⇒ Object



12
13
14
# File 'lib/sample_file.rb', line 12

def image_path(type='png')
  Image.new.file_path(type)
end

.video(type = 'h264') ⇒ Object



16
17
18
# File 'lib/sample_file.rb', line 16

def video(type='h264')
  Video.new.file(type)
end

.video_path(type = 'h264') ⇒ Object



20
21
22
# File 'lib/sample_file.rb', line 20

def video_path(type='h264')
  Video.new.file_path(type)
end