Class: HubSpotSDK::Models::Cms::LayoutSection

Inherits:
Internal::Type::BaseModel show all
Defined in:
lib/hubspot_sdk/models/cms/layout_section.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(cells:, css_class:, css_id:, css_style:, label:, name:, params:, row_meta_data:, rows:, styles:, type:, w:, x:) ⇒ Object

Parameters:

  • cells (Array<HubSpotSDK::Models::Cms::LayoutSection>)
  • css_class (String)

    The CSS class applied to the layout section.

  • css_id (String)

    The CSS ID applied to the layout section.

  • css_style (String)

    Custom CSS styles applied to the layout section.

  • label (String)

    The label for the layout section.

  • name (String)

    The name assigned to the layout section.

  • params (Hash{Symbol=>Object})

    null

  • row_meta_data (Array<HubSpotSDK::Models::Cms::RowMetaData>)
  • rows (Array<Hash{Symbol=>HubSpotSDK::Models::Cms::LayoutSection}>)
  • styles (HubSpotSDK::Models::Cms::Styles)
  • type (String)

    The type of the layout section.

  • w (Integer)

    The width of the layout section.

  • x (Integer)

    The x-coordinate position of the layout section.



# File 'lib/hubspot_sdk/models/cms/layout_section.rb', line 84

Instance Attribute Details

#cellsArray<HubSpotSDK::Models::Cms::LayoutSection>



10
# File 'lib/hubspot_sdk/models/cms/layout_section.rb', line 10

required :cells, -> { HubSpotSDK::Internal::Type::ArrayOf[HubSpotSDK::Cms::LayoutSection] }

#css_classString

The CSS class applied to the layout section.

Returns:

  • (String)


16
# File 'lib/hubspot_sdk/models/cms/layout_section.rb', line 16

required :css_class, String, api_name: :cssClass

#css_idString

The CSS ID applied to the layout section.

Returns:

  • (String)


22
# File 'lib/hubspot_sdk/models/cms/layout_section.rb', line 22

required :css_id, String, api_name: :cssId

#css_styleString

Custom CSS styles applied to the layout section.

Returns:

  • (String)


28
# File 'lib/hubspot_sdk/models/cms/layout_section.rb', line 28

required :css_style, String, api_name: :cssStyle

#labelString

The label for the layout section.

Returns:

  • (String)


34
# File 'lib/hubspot_sdk/models/cms/layout_section.rb', line 34

required :label, String

#nameString

The name assigned to the layout section.

Returns:

  • (String)


40
# File 'lib/hubspot_sdk/models/cms/layout_section.rb', line 40

required :name, String

#paramsHash{Symbol=>Object}

null

Returns:

  • (Hash{Symbol=>Object})


46
# File 'lib/hubspot_sdk/models/cms/layout_section.rb', line 46

required :params, HubSpotSDK::Internal::Type::HashOf[HubSpotSDK::Internal::Type::Unknown]

#row_meta_dataArray<HubSpotSDK::Models::Cms::RowMetaData>



51
52
53
# File 'lib/hubspot_sdk/models/cms/layout_section.rb', line 51

required :row_meta_data,
-> { HubSpotSDK::Internal::Type::ArrayOf[HubSpotSDK::Cms::RowMetaData] },
api_name: :rowMetaData

#rowsArray<Hash{Symbol=>HubSpotSDK::Models::Cms::LayoutSection}>

Returns:



58
59
# File 'lib/hubspot_sdk/models/cms/layout_section.rb', line 58

required :rows,
-> { HubSpotSDK::Internal::Type::ArrayOf[HubSpotSDK::Internal::Type::HashOf[HubSpotSDK::Cms::LayoutSection]] }

#stylesHubSpotSDK::Models::Cms::Styles



64
# File 'lib/hubspot_sdk/models/cms/layout_section.rb', line 64

required :styles, -> { HubSpotSDK::Cms::Styles }

#typeString

The type of the layout section.

Returns:

  • (String)


70
# File 'lib/hubspot_sdk/models/cms/layout_section.rb', line 70

required :type, String

#wInteger

The width of the layout section.

Returns:

  • (Integer)


76
# File 'lib/hubspot_sdk/models/cms/layout_section.rb', line 76

required :w, Integer

#xInteger

The x-coordinate position of the layout section.

Returns:

  • (Integer)


82
# File 'lib/hubspot_sdk/models/cms/layout_section.rb', line 82

required :x, Integer