Class: Courier::Models::NotificationGetContent::Channel::Locale

Inherits:
Internal::Type::BaseModel show all
Defined in:
lib/courier/models/notification_get_content.rb,
sig/courier/models/notification_get_content.rbs

Instance Attribute Summary collapse

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

#initialize(subject: nil, title: nil) ⇒ Locale

Returns a new instance of Locale.

Parameters:

  • subject (String, nil) (defaults to: nil)
  • title (String, nil) (defaults to: nil)
  • subject: (String, nil) (defaults to: nil)
  • title: (String, nil) (defaults to: nil)


# File 'lib/courier/models/notification_get_content.rb', line 216

Instance Attribute Details

#subjectString?

Parameters:

  • value (String, nil)

Returns:

  • (String, nil)


209
# File 'lib/courier/models/notification_get_content.rb', line 209

optional :subject, String, nil?: true

#titleString?

Parameters:

  • value (String, nil)

Returns:

  • (String, nil)


214
# File 'lib/courier/models/notification_get_content.rb', line 214

optional :title, String, nil?: true

Instance Method Details

#to_hash{ subject: String?, title: String? }

Returns:

  • ({ subject: String?, title: String? })


206
# File 'sig/courier/models/notification_get_content.rbs', line 206

def to_hash: -> { subject: String?, title: String? }