Class: Xberg::StructuredDataResult

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeStructuredDataResult

Returns a new instance of StructuredDataResult.

Parameters:

  • content: (String)
  • format: (String)
  • metadata: (Hash[String, String])
  • text_fields: (Array[String])
  • value: (String)
  • flattened: (Array[String])


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

def initialize: (content: String, format: String, metadata: Hash[String, String], text_fields: Array[String], ?value: String, flattened: Array[String]) -> void

Instance Attribute Details

#contentString (readonly)

Returns the value of attribute content.

Returns:

  • (String)


2427
2428
2429
# File 'sig/types.rbs', line 2427

def content
  @content
end

#flattenedArray[String] (readonly)

Returns the value of attribute flattened.

Returns:

  • (Array[String])


2432
2433
2434
# File 'sig/types.rbs', line 2432

def flattened
  @flattened
end

#formatString (readonly)

Returns the value of attribute format.

Returns:

  • (String)


2428
2429
2430
# File 'sig/types.rbs', line 2428

def format
  @format
end

#metadataHash[String, String] (readonly)

Returns the value of attribute metadata.

Returns:

  • (Hash[String, String])


2429
2430
2431
# File 'sig/types.rbs', line 2429

def 
  @metadata
end

#text_fieldsArray[String] (readonly)

Returns the value of attribute text_fields.

Returns:

  • (Array[String])


2430
2431
2432
# File 'sig/types.rbs', line 2430

def text_fields
  @text_fields
end

#valueString? (readonly)

Returns the value of attribute value.

Returns:

  • (String, nil)


2431
2432
2433
# File 'sig/types.rbs', line 2431

def value
  @value
end