Class: Xberg::StructuredData

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeStructuredData

Returns a new instance of StructuredData.

Parameters:

  • data_type: (enum_StructuredDataType)
  • raw_json: (String)
  • schema_type: (String)


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

def initialize: (data_type: enum_StructuredDataType, raw_json: String, ?schema_type: String) -> void

Instance Attribute Details

#data_typeenum_StructuredDataType (readonly)

Returns the value of attribute data_type.

Returns:

  • (enum_StructuredDataType)


2419
2420
2421
# File 'sig/types.rbs', line 2419

def data_type
  @data_type
end

#raw_jsonString (readonly)

Returns the value of attribute raw_json.

Returns:

  • (String)


2420
2421
2422
# File 'sig/types.rbs', line 2420

def raw_json
  @raw_json
end

#schema_typeString? (readonly)

Returns the value of attribute schema_type.

Returns:

  • (String, nil)


2421
2422
2423
# File 'sig/types.rbs', line 2421

def schema_type
  @schema_type
end