Class: Straddle::Models::BusinessCustomerRepresentative
- Inherits:
-
Internal::Type::BaseModel
- Object
- Internal::Type::BaseModel
- Straddle::Models::BusinessCustomerRepresentative
- Defined in:
- lib/straddle/models/business_customer_representative.rb,
sig/straddle/models/business_customer_representative.rbs
Instance Attribute Summary collapse
-
#email ⇒ String?
Email address of the representative.
-
#name ⇒ String
Full name of the representative.
-
#phone ⇒ String?
Phone number of the representative.
Instance Method Summary collapse
-
#initialize(name:, email: nil, phone: nil) ⇒ BusinessCustomerRepresentative
constructor
A new instance of BusinessCustomerRepresentative.
- #to_hash ⇒ { name: String, email: String?, phone: 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(name:, email: nil, phone: nil) ⇒ BusinessCustomerRepresentative
Returns a new instance of BusinessCustomerRepresentative.
|
|
# File 'lib/straddle/models/business_customer_representative.rb', line 24
|
Instance Attribute Details
#email ⇒ String?
Email address of the representative.
16 |
# File 'lib/straddle/models/business_customer_representative.rb', line 16 optional :email, String, nil?: true |
#name ⇒ String
Full name of the representative.
10 |
# File 'lib/straddle/models/business_customer_representative.rb', line 10 required :name, String |
#phone ⇒ String?
Phone number of the representative.
22 |
# File 'lib/straddle/models/business_customer_representative.rb', line 22 optional :phone, String, nil?: true |
Instance Method Details
#to_hash ⇒ { name: String, email: String?, phone: String? }
15 |
# File 'sig/straddle/models/business_customer_representative.rbs', line 15
def to_hash: -> { name: String, email: String?, phone: String? }
|