Class: Imgwire::Uploads::ResolvedUpload

Inherits:
Struct
  • Object
show all
Defined in:
lib/imgwire/uploads.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#content_lengthObject

Returns the value of attribute content_length

Returns:

  • (Object)

    the current value of content_length



19
20
21
# File 'lib/imgwire/uploads.rb', line 19

def content_length
  @content_length
end

#file_nameObject

Returns the value of attribute file_name

Returns:

  • (Object)

    the current value of file_name



19
20
21
# File 'lib/imgwire/uploads.rb', line 19

def file_name
  @file_name
end

#ioObject

Returns the value of attribute io

Returns:

  • (Object)

    the current value of io



19
20
21
# File 'lib/imgwire/uploads.rb', line 19

def io
  @io
end

#mime_typeObject

Returns the value of attribute mime_type

Returns:

  • (Object)

    the current value of mime_type



19
20
21
# File 'lib/imgwire/uploads.rb', line 19

def mime_type
  @mime_type
end

Instance Method Details

#rewindObject



26
27
28
# File 'lib/imgwire/uploads.rb', line 26

def rewind
  io.rewind if io.respond_to?(:rewind)
end