Class: Zavudev::Models::MessageContent::Contact
- Inherits:
-
Internal::Type::BaseModel
- Object
- Internal::Type::BaseModel
- Zavudev::Models::MessageContent::Contact
- Defined in:
- lib/zavudev/models/message_content.rb,
sig/zavudev/models/message_content.rbs
Instance Attribute Summary collapse
Instance Method Summary collapse
-
#initialize ⇒ Contact
constructor
A new instance of Contact.
- #to_hash ⇒ { name: String, phones: ::Array[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 ⇒ Contact
Returns a new instance of Contact.
254 |
# File 'sig/zavudev/models/message_content.rbs', line 254
def initialize: (?name: String, ?phones: ::Array[String]) -> void
|
Instance Attribute Details
#name ⇒ String?
296 |
# File 'lib/zavudev/models/message_content.rb', line 296 optional :name, String |
#phones ⇒ Array<String>?
301 |
# File 'lib/zavudev/models/message_content.rb', line 301 optional :phones, Zavudev::Internal::Type::ArrayOf[String] |
Instance Method Details
#to_hash ⇒ { name: String, phones: ::Array[String] }
256 |
# File 'sig/zavudev/models/message_content.rbs', line 256
def to_hash: -> { name: String, phones: ::Array[String] }
|