Class: Courier::Models::ElementWithChecksums::Locale
- Inherits:
-
Internal::Type::BaseModel
- Object
- Internal::Type::BaseModel
- Courier::Models::ElementWithChecksums::Locale
- Defined in:
- lib/courier/models/element_with_checksums.rb,
sig/courier/models/element_with_checksums.rbs
Instance Attribute Summary collapse
Instance Method Summary collapse
-
#initialize(checksum:) ⇒ Locale
constructor
A new instance of Locale.
- #to_hash ⇒ { checksum: 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(checksum:) ⇒ Locale
Returns a new instance of Locale.
49 50 51 52 53 54 55 56 57 |
# File 'lib/courier/models/element_with_checksums.rb', line 49 class Locale < Courier::Internal::Type::BaseModel # @!attribute checksum # # @return [String] required :checksum, String # @!method initialize(checksum:) # @param checksum [String] end |
Instance Attribute Details
#checksum ⇒ String
53 |
# File 'lib/courier/models/element_with_checksums.rb', line 53 required :checksum, String |
Instance Method Details
#to_hash ⇒ { checksum: String }
56 |
# File 'sig/courier/models/element_with_checksums.rbs', line 56
def to_hash: -> { checksum: String }
|