Class: Courier::Models::ElementalHTMLNodeWithType

Inherits:
ElementalBaseNode show all
Defined in:
lib/courier/models/elemental_html_node_with_type.rb,
sig/courier/models/elemental_html_node_with_type.rbs

Defined Under Namespace

Modules: Type

Instance Attribute Summary collapse

Attributes inherited from ElementalBaseNode

#channels, #if_, #loop_, #ref

Instance Method Summary collapse

Methods inherited from Internal::Type::BaseModel

==, #==, #[], coerce, #deconstruct_keys, #deep_to_h, dump, fields, hash, #hash, inherited, inspect, #inspect, known_fields, optional, recursively_to_h, required, #to_h, #to_json, #to_s, to_sorbet_type, #to_yaml

Methods included from Internal::Type::Converter

#coerce, coerce, #dump, dump, #inspect, inspect, meta_info, new_coerce_state, type_info

Methods included from Internal::Util::SorbetRuntimeSupport

#const_missing, #define_sorbet_constant!, #sorbet_constant_defined?, #to_sorbet_type, to_sorbet_type

Constructor Details

#initializeObject



13
# File 'sig/courier/models/elemental_html_node_with_type.rbs', line 13

def initialize: (

Instance Attribute Details

#typeSymbol, ...



9
# File 'lib/courier/models/elemental_html_node_with_type.rb', line 9

optional :type, enum: -> { Courier::ElementalHTMLNodeWithType::Type }

Instance Method Details

#`type`Courier::Models::ElementalHTMLNodeWithType::type_?

Returns:

  • (Courier::Models::ElementalHTMLNodeWithType::type_, nil)


7
# File 'sig/courier/models/elemental_html_node_with_type.rbs', line 7

def `type`: -> Courier::Models::ElementalHTMLNodeWithType::type_?

#to_hash{

Returns:

  • ({)


17
# File 'sig/courier/models/elemental_html_node_with_type.rbs', line 17

def to_hash: -> {