Class: Inttegro::Chime::EmailSchemaMarkup

Inherits:
T::Struct
  • Object
show all
Defined in:
lib/inttegro/chime/email_schema_markup.rb

Overview

Schema.org JSON-LD markup generated at email send time.

This generated model is immutable. Construct it with .new, or decode a string-keyed API payload with .from_hash. #serialize produces a string-keyed hash using the original wire field names and serialized enum values.

Instance Attribute Summary collapse

Instance Attribute Details

#json_ld ⇒ Hash{String => Object}? (readonly)

Deliberately extensible JSON object whose keys and values are defined by the selected integration or resource subtype.

Optional in the API payload; omitted values default to nil. Wire name: json_ld.

Returns:

  • (Hash{String => Object}, nil)


31
32
33
34
# File 'lib/inttegro/chime/email_schema_markup.rb', line 31

class EmailSchemaMarkup < T::Struct
  const :kind, T.nilable(Inttegro::Chime::EmailSchemaKind), default: nil
  const :json_ld, T.nilable(T::Hash[String, Object]), default: nil
end

#kind ⇒ Inttegro::Chime::EmailSchemaKind? (readonly)

Classification for the generated markup

Optional in the API payload; omitted values default to nil. Wire name: kind.



31
32
33
34
# File 'lib/inttegro/chime/email_schema_markup.rb', line 31

class EmailSchemaMarkup < T::Struct
  const :kind, T.nilable(Inttegro::Chime::EmailSchemaKind), default: nil
  const :json_ld, T.nilable(T::Hash[String, Object]), default: nil
end