Class: Xberg::ExtractInput

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

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeExtractInput

Returns a new instance of ExtractInput.

Parameters:



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

def initialize: (?kind: ExtractInputKind, ?bytes: String, ?uri: String, ?mime_type: String, ?filename: String, ?config: FileExtractionConfig) -> void

Instance Attribute Details

#bytesString?

Returns the value of attribute bytes.

Returns:

  • (String, nil)


157
158
159
# File 'sig/types.rbs', line 157

def bytes
  @bytes
end

#configFileExtractionConfig?

Returns the value of attribute config.

Returns:



161
162
163
# File 'sig/types.rbs', line 161

def config
  @config
end

#filenameString?

Returns the value of attribute filename.

Returns:

  • (String, nil)


160
161
162
# File 'sig/types.rbs', line 160

def filename
  @filename
end

#kindExtractInputKind?

Returns the value of attribute kind.

Returns:



156
157
158
# File 'sig/types.rbs', line 156

def kind
  @kind
end

#mime_typeString?

Returns the value of attribute mime_type.

Returns:

  • (String, nil)


159
160
161
# File 'sig/types.rbs', line 159

def mime_type
  @mime_type
end

#uriString?

Returns the value of attribute uri.

Returns:

  • (String, nil)


158
159
160
# File 'sig/types.rbs', line 158

def uri
  @uri
end

Class Method Details

.defaultExtractInput

Returns:



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

def self.default: () -> ExtractInput

.from_bytesExtractInput

Parameters:

  • bytes (String)
  • mime_type (String)
  • filename (String)

Returns:



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

def self.from_bytes: (String bytes, String mime_type, ?String filename) -> ExtractInput

.from_uriExtractInput

Parameters:

  • uri (String)

Returns:



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

def self.from_uri: (String uri) -> ExtractInput