Class: Courier::Models::NotificationLocalePutRequest::Element
- Inherits:
-
Internal::Type::BaseModel
- Object
- Internal::Type::BaseModel
- Courier::Models::NotificationLocalePutRequest::Element
- Defined in:
- lib/courier/models/notification_locale_put_request.rb,
sig/courier/models/notification_locale_put_request.rbs
Instance Attribute Summary collapse
-
#id ⇒ String
Target element ID.
Instance Method Summary collapse
-
#initialize(id:) ⇒ Element
constructor
A new instance of Element.
- #to_hash ⇒ { id: String }
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.
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
#id ⇒ String
Target element ID.
32 |
# File 'lib/courier/models/notification_locale_put_request.rb', line 32 required :id, String |
Instance Method Details
#to_hash ⇒ { id: String }
35 |
# File 'sig/courier/models/notification_locale_put_request.rbs', line 35
def to_hash: -> { id: String }
|