Class: Indexmap::Storage::File

Inherits:
Struct
  • Object
show all
Defined in:
lib/indexmap/storage/file.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#bodyObject

Returns the value of attribute body

Returns:

  • (Object)

    the current value of body



5
6
7
# File 'lib/indexmap/storage/file.rb', line 5

def body
  @body
end

#content_typeObject

Returns the value of attribute content_type

Returns:

  • (Object)

    the current value of content_type



5
6
7
# File 'lib/indexmap/storage/file.rb', line 5

def content_type
  @content_type
end

#filenameObject

Returns the value of attribute filename

Returns:

  • (Object)

    the current value of filename



5
6
7
# File 'lib/indexmap/storage/file.rb', line 5

def filename
  @filename
end

Instance Method Details

#basenameObject



6
7
8
# File 'lib/indexmap/storage/file.rb', line 6

def basename
  ::File.basename(filename)
end