Class: Trycourier::Models::BrandSettingsInApp

Inherits:
Internal::Type::BaseModel show all
Defined in:
lib/trycourier/models/brand_settings_in_app.rb

Defined Under Namespace

Modules: Placement

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(colors: , icons: , widget_background: , border_radius: nil, disable_message_icon: nil, font_family: nil, placement: nil) ⇒ Object

Parameters:



# File 'lib/trycourier/models/brand_settings_in_app.rb', line 44


Instance Attribute Details

#border_radiusString?

Returns:

  • (String, nil)


24
# File 'lib/trycourier/models/brand_settings_in_app.rb', line 24

optional :border_radius, String, api_name: :borderRadius, nil?: true

#colorsTrycourier::Models::BrandColors



9
# File 'lib/trycourier/models/brand_settings_in_app.rb', line 9

required :colors, -> { Trycourier::BrandColors }

#disable_message_iconBoolean?

Returns:

  • (Boolean, nil)


29
30
31
32
# File 'lib/trycourier/models/brand_settings_in_app.rb', line 29

optional :disable_message_icon,
Trycourier::Internal::Type::Boolean,
api_name: :disableMessageIcon,
nil?: true

#font_familyString?

Returns:

  • (String, nil)


37
# File 'lib/trycourier/models/brand_settings_in_app.rb', line 37

optional :font_family, String, api_name: :fontFamily, nil?: true

#iconsTrycourier::Models::Icons



14
# File 'lib/trycourier/models/brand_settings_in_app.rb', line 14

required :icons, -> { Trycourier::Icons }

#placementSymbol, ...



42
# File 'lib/trycourier/models/brand_settings_in_app.rb', line 42

optional :placement, enum: -> { Trycourier::BrandSettingsInApp::Placement }, nil?: true

#widget_backgroundTrycourier::Models::WidgetBackground



19
# File 'lib/trycourier/models/brand_settings_in_app.rb', line 19

required :widget_background, -> { Trycourier::WidgetBackground }, api_name: :widgetBackground