Class: Courier::Models::NotificationLocalePutRequest::Element

Inherits:
Internal::Type::BaseModel show all
Defined in:
lib/courier/models/notification_locale_put_request.rb,
sig/courier/models/notification_locale_put_request.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(id:) ⇒ Element

Returns a new instance of Element.

Parameters:

  • id (String)

    Target element ID.

  • id: (String)


27
28
29
30
31
32
33
34
35
36
# File 'lib/courier/models/notification_locale_put_request.rb', line 27

class Element < Courier::Internal::Type::BaseModel
  # @!attribute id
  #   Target element ID.
  #
  #   @return [String]
  required :id, String

  # @!method initialize(id:)
  #   @param id [String] Target element ID.
end

Instance Attribute Details

#idString

Target element ID.

Parameters:

  • value (String)

Returns:

  • (String)


32
# File 'lib/courier/models/notification_locale_put_request.rb', line 32

required :id, String

Instance Method Details

#to_hash{ id: String }

Returns:

  • ({ id: String })


35
# File 'sig/courier/models/notification_locale_put_request.rbs', line 35

def to_hash: -> { id: String }