Class: Spikard::UploadFile
- Inherits:
-
Object
- Object
- Spikard::UploadFile
- Defined in:
- sig/types.rbs
Instance Attribute Summary collapse
-
#content ⇒ String
readonly
Returns the value of attribute content.
-
#content_encoding ⇒ String
readonly
Returns the value of attribute content_encoding.
-
#content_type ⇒ String
readonly
Returns the value of attribute content_type.
-
#filename ⇒ String
readonly
Returns the value of attribute filename.
-
#size ⇒ Integer
readonly
Returns the value of attribute size.
Instance Method Summary collapse
- #as_bytes ⇒ String
- #content_type_or_default ⇒ String
-
#initialize ⇒ UploadFile
constructor
A new instance of UploadFile.
- #read_to_string ⇒ String
Constructor Details
#initialize ⇒ UploadFile
Returns a new instance of UploadFile.
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
#content ⇒ String (readonly)
Returns the value of attribute content.
16 17 18 |
# File 'sig/types.rbs', line 16 def content @content end |
#content_encoding ⇒ String (readonly)
Returns the value of attribute content_encoding.
17 18 19 |
# File 'sig/types.rbs', line 17 def content_encoding @content_encoding end |
#content_type ⇒ String (readonly)
Returns the value of attribute content_type.
14 15 16 |
# File 'sig/types.rbs', line 14 def content_type @content_type end |
#filename ⇒ String (readonly)
Returns the value of attribute filename.
13 14 15 |
# File 'sig/types.rbs', line 13 def filename @filename end |
#size ⇒ Integer (readonly)
Returns the value of attribute size.
15 16 17 |
# File 'sig/types.rbs', line 15 def size @size end |
Instance Method Details
#as_bytes ⇒ String
20 |
# File 'sig/types.rbs', line 20
def as_bytes: () -> String
|
#content_type_or_default ⇒ String
22 |
# File 'sig/types.rbs', line 22
def content_type_or_default: () -> String
|
#read_to_string ⇒ String
21 |
# File 'sig/types.rbs', line 21
def read_to_string: () -> String
|