Class: Spikard::UploadFile

Inherits:
Object
  • Object
show all
Defined in:
sig/types.rbs

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeUploadFile

Returns a new instance of UploadFile.

Parameters:

  • filename: (String)
  • content_type: (String)
  • size: (Integer)
  • content: (String)
  • content_encoding: (String)


19
# File 'sig/types.rbs', line 19

def initialize: (filename: String, ?content_type: String, ?size: Integer, content: String, ?content_encoding: String) -> void

Instance Attribute Details

#contentString (readonly)

Returns the value of attribute content.

Returns:

  • (String)


16
17
18
# File 'sig/types.rbs', line 16

def content
  @content
end

#content_encodingString (readonly)

Returns the value of attribute content_encoding.

Returns:

  • (String)


17
18
19
# File 'sig/types.rbs', line 17

def content_encoding
  @content_encoding
end

#content_typeString (readonly)

Returns the value of attribute content_type.

Returns:

  • (String)


14
15
16
# File 'sig/types.rbs', line 14

def content_type
  @content_type
end

#filenameString (readonly)

Returns the value of attribute filename.

Returns:

  • (String)


13
14
15
# File 'sig/types.rbs', line 13

def filename
  @filename
end

#sizeInteger (readonly)

Returns the value of attribute size.

Returns:

  • (Integer)


15
16
17
# File 'sig/types.rbs', line 15

def size
  @size
end

Instance Method Details

#as_bytesString

Returns:

  • (String)


20
# File 'sig/types.rbs', line 20

def as_bytes: () -> String

#content_type_or_defaultString

Returns:

  • (String)


22
# File 'sig/types.rbs', line 22

def content_type_or_default: () -> String

#read_to_stringString

Returns:

  • (String)


21
# File 'sig/types.rbs', line 21

def read_to_string: () -> String