Class: Courier::Models::SendToMsTeamsEmail
- Inherits:
-
Internal::Type::BaseModel
- Object
- Internal::Type::BaseModel
- Courier::Models::SendToMsTeamsEmail
- Defined in:
- lib/courier/models/send_to_ms_teams_email.rb,
sig/courier/models/send_to_ms_teams_email.rbs
Instance Attribute Summary collapse
Instance Method Summary collapse
-
#initialize(email:, service_url: nil, tenant_id: nil) ⇒ Object
constructor
Provide at least one of
tenant_idorservice_url. - #to_hash ⇒ { email: String, service_url: String, tenant_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(email:, service_url: nil, tenant_id: nil) ⇒ Object
Provide at least one of tenant_id or service_url. If you provide both, they
must agree.
|
|
# File 'lib/courier/models/send_to_ms_teams_email.rb', line 21
|
Instance Attribute Details
#email ⇒ String
9 |
# File 'lib/courier/models/send_to_ms_teams_email.rb', line 9 required :email, String |
#service_url ⇒ String?
14 |
# File 'lib/courier/models/send_to_ms_teams_email.rb', line 14 optional :service_url, String |
#tenant_id ⇒ String?
19 |
# File 'lib/courier/models/send_to_ms_teams_email.rb', line 19 optional :tenant_id, String |
Instance Method Details
#to_hash ⇒ { email: String, service_url: String, tenant_id: String }
23 |
# File 'sig/courier/models/send_to_ms_teams_email.rbs', line 23
def to_hash: -> { email: String, service_url: String, tenant_id: String }
|