Class: Bulldog::MissingFile
- Inherits:
-
Object
- Object
- Bulldog::MissingFile
- Defined in:
- lib/bulldog/missing_file.rb
Instance Attribute Summary collapse
-
#attachment_type ⇒ Object
readonly
Returns the value of attribute attachment_type.
-
#content_type ⇒ Object
readonly
Returns the value of attribute content_type.
-
#file_name ⇒ Object
readonly
Returns the value of attribute file_name.
-
#path ⇒ Object
readonly
Returns the value of attribute path.
Instance Method Summary collapse
-
#initialize(options = {}) ⇒ MissingFile
constructor
A new instance of MissingFile.
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(={}) = @file_name = [:file_name] || 'missing-file' @content_type = [:content_type] @path = [:path] || '/dev/null' end |
Instance Attribute Details
#attachment_type ⇒ Object (readonly)
Returns the value of attribute attachment_type.
10 11 12 |
# File 'lib/bulldog/missing_file.rb', line 10 def end |
#content_type ⇒ Object (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_name ⇒ Object (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 |
#path ⇒ Object (readonly)
Returns the value of attribute path.
10 11 12 |
# File 'lib/bulldog/missing_file.rb', line 10 def path @path end |