Class: Trycourier::Models::BrandTemplate

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

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(enabled: , background_color: nil, blocks_background_color: nil, footer: nil, head: nil, header: nil, width: nil) ⇒ Object

Parameters:

  • enabled (Boolean) (defaults to: )
  • background_color (String, nil) (defaults to: nil)
  • blocks_background_color (String, nil) (defaults to: nil)
  • footer (String, nil) (defaults to: nil)
  • head (String, nil) (defaults to: nil)
  • header (String, nil) (defaults to: nil)
  • width (String, nil) (defaults to: nil)


# File 'lib/trycourier/models/brand_template.rb', line 41

Instance Attribute Details

#background_colorString?

Returns:

  • (String, nil)


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

optional :background_color, String, api_name: :backgroundColor, nil?: true

#blocks_background_colorString?

Returns:

  • (String, nil)


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

optional :blocks_background_color, String, api_name: :blocksBackgroundColor, nil?: true

#enabledBoolean

Returns:

  • (Boolean)


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

required :enabled, Trycourier::Internal::Type::Boolean

Returns:

  • (String, nil)


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

optional :footer, String, nil?: true

#headString?

Returns:

  • (String, nil)


29
# File 'lib/trycourier/models/brand_template.rb', line 29

optional :head, String, nil?: true

#headerString?

Returns:

  • (String, nil)


34
# File 'lib/trycourier/models/brand_template.rb', line 34

optional :header, String, nil?: true

#widthString?

Returns:

  • (String, nil)


39
# File 'lib/trycourier/models/brand_template.rb', line 39

optional :width, String, nil?: true