Class: HubSpotSDK::Models::Crm::PublicMonthReference

Inherits:
Internal::Type::BaseModel show all
Defined in:
lib/hubspot_sdk/models/crm/public_month_reference.rb

Defined Under Namespace

Modules: ReferenceType

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(day:, reference_type:, hour: nil, millisecond: nil, minute: nil, second: nil) ⇒ Object

Parameters:

  • day (Integer)

    The day component of the month reference.

  • reference_type (Symbol, HubSpotSDK::Models::Crm::PublicMonthReference::ReferenceType)

    Indicates the type of reference, (MONTH).

  • hour (Integer) (defaults to: nil)

    The hour component of the month reference.

  • millisecond (Integer) (defaults to: nil)

    The millisecond component of the month reference.

  • minute (Integer) (defaults to: nil)

    The minute component of the month reference.

  • second (Integer) (defaults to: nil)

    The second component of the month reference.



# File 'lib/hubspot_sdk/models/crm/public_month_reference.rb', line 45

Instance Attribute Details

#dayInteger

The day component of the month reference.

Returns:

  • (Integer)


11
# File 'lib/hubspot_sdk/models/crm/public_month_reference.rb', line 11

required :day, Integer

#hourInteger?

The hour component of the month reference.

Returns:

  • (Integer, nil)


25
# File 'lib/hubspot_sdk/models/crm/public_month_reference.rb', line 25

optional :hour, Integer

#millisecondInteger?

The millisecond component of the month reference.

Returns:

  • (Integer, nil)


31
# File 'lib/hubspot_sdk/models/crm/public_month_reference.rb', line 31

optional :millisecond, Integer

#minuteInteger?

The minute component of the month reference.

Returns:

  • (Integer, nil)


37
# File 'lib/hubspot_sdk/models/crm/public_month_reference.rb', line 37

optional :minute, Integer

#reference_typeSymbol, HubSpotSDK::Models::Crm::PublicMonthReference::ReferenceType

Indicates the type of reference, (MONTH).



17
18
19
# File 'lib/hubspot_sdk/models/crm/public_month_reference.rb', line 17

required :reference_type,
enum: -> { HubSpotSDK::Crm::PublicMonthReference::ReferenceType },
api_name: :referenceType

#secondInteger?

The second component of the month reference.

Returns:

  • (Integer, nil)


43
# File 'lib/hubspot_sdk/models/crm/public_month_reference.rb', line 43

optional :second, Integer