Class: Straddle::Models::AccountSupportChannels

Inherits:
Internal::Type::BaseModel show all
Defined in:
lib/straddle/models/account_support_channels.rb,
sig/straddle/models/account_support_channels.rbs

Instance Attribute Summary collapse

Instance Method Summary collapse

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: nil, phone: nil, url: nil) ⇒ AccountSupportChannels

Returns a new instance of AccountSupportChannels.

Parameters:

  • email (String, nil) (defaults to: nil) —

    Email address for customer support.

  • phone (String, nil) (defaults to: nil) —

    Customer support phone number in E.164 format.

  • url (String, nil) (defaults to: nil) —

    URL of the business's customer support page or contact form.

  • email: (String, nil) (defaults to: nil)
  • phone: (String, nil) (defaults to: nil)
  • url: (String, nil) (defaults to: nil)


# File 'lib/straddle/models/account_support_channels.rb', line 24

Instance Attribute Details

#email ⇒ String?

Email address for customer support.

Parameters:

  • value (String, nil)

Returns:

  • (String, nil)


10
# File 'lib/straddle/models/account_support_channels.rb', line 10

optional :email, String, nil?: true

#phone ⇒ String?

Customer support phone number in E.164 format.

Parameters:

  • value (String, nil)

Returns:

  • (String, nil)


16
# File 'lib/straddle/models/account_support_channels.rb', line 16

optional :phone, String, nil?: true

#url ⇒ String?

URL of the business's customer support page or contact form.

Parameters:

  • value (String, nil)

Returns:

  • (String, nil)


22
# File 'lib/straddle/models/account_support_channels.rb', line 22

optional :url, String, nil?: true

Instance Method Details

#to_hash ⇒ { email: String?, phone: String?, url: String? }

Returns:

  • ({ email: String?, phone: String?, url: String? })


15
# File 'sig/straddle/models/account_support_channels.rbs', line 15

def to_hash: -> { email: String?, phone: String?, url: String? }