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:



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

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)


182
183
184
# File 'sig/types.rbs', line 182

def bytes
  @bytes
end

#configFileExtractionConfig?

Returns the value of attribute config.

Returns:



186
187
188
# File 'sig/types.rbs', line 186

def config
  @config
end

#filenameString?

Returns the value of attribute filename.

Returns:

  • (String, nil)


185
186
187
# File 'sig/types.rbs', line 185

def filename
  @filename
end

#kindExtractInputKind?

Returns the value of attribute kind.

Returns:



181
182
183
# File 'sig/types.rbs', line 181

def kind
  @kind
end

#mime_typeString?

Returns the value of attribute mime_type.

Returns:

  • (String, nil)


184
185
186
# File 'sig/types.rbs', line 184

def mime_type
  @mime_type
end

#uriString?

Returns the value of attribute uri.

Returns:

  • (String, nil)


183
184
185
# File 'sig/types.rbs', line 183

def uri
  @uri
end

Class Method Details

.defaultExtractInput

Returns:



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

def self.default: () -> ExtractInput

.from_bytesExtractInput

Parameters:

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

Returns:



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

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

.from_uriExtractInput

Parameters:

  • uri (String)

Returns:



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

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