Class: Bulldog::MissingFile

Inherits:
Object
  • Object
show all
Defined in:
lib/bulldog/missing_file.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(options = {}) ⇒ MissingFile

Returns a new instance of MissingFile.



3
4
5
6
7
8
# File 'lib/bulldog/missing_file.rb', line 3

def initialize(options={})
  @attachment_type = attachment_type
  @file_name = options[:file_name] || 'missing-file'
  @content_type = options[:content_type]
  @path = options[:path] || '/dev/null'
end

Instance Attribute Details

#attachment_typeObject (readonly)

Returns the value of attribute attachment_type.



10
11
12
# File 'lib/bulldog/missing_file.rb', line 10

def attachment_type
  @attachment_type
end

#content_typeObject (readonly)

Returns the value of attribute content_type.



10
11
12
# File 'lib/bulldog/missing_file.rb', line 10

def content_type
  @content_type
end

#file_nameObject (readonly)

Returns the value of attribute file_name.



10
11
12
# File 'lib/bulldog/missing_file.rb', line 10

def file_name
  @file_name
end

#pathObject (readonly)

Returns the value of attribute path.



10
11
12
# File 'lib/bulldog/missing_file.rb', line 10

def path
  @path
end