Class: HubSpotSDK::Models::Crm::PublicTodayReference

Inherits:
Internal::Type::BaseModel show all
Defined in:
lib/hubspot_sdk/models/crm/public_today_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(reference_type:, hour: nil, millisecond: nil, minute: nil, second: nil) ⇒ Object

Parameters:

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

    Indicates the type of reference (TODAY).

  • hour (Integer) (defaults to: nil)

    The hour component of the current day reference.

  • millisecond (Integer) (defaults to: nil)

    The millisecond component of the current day reference.

  • minute (Integer) (defaults to: nil)

    The minute component of the current day reference.

  • second (Integer) (defaults to: nil)

    The second component of the current day reference.



# File 'lib/hubspot_sdk/models/crm/public_today_reference.rb', line 39

Instance Attribute Details

#hourInteger?

The hour component of the current day reference.

Returns:

  • (Integer, nil)


19
# File 'lib/hubspot_sdk/models/crm/public_today_reference.rb', line 19

optional :hour, Integer

#millisecondInteger?

The millisecond component of the current day reference.

Returns:

  • (Integer, nil)


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

optional :millisecond, Integer

#minuteInteger?

The minute component of the current day reference.

Returns:

  • (Integer, nil)


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

optional :minute, Integer

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

Indicates the type of reference (TODAY).



11
12
13
# File 'lib/hubspot_sdk/models/crm/public_today_reference.rb', line 11

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

#secondInteger?

The second component of the current day reference.

Returns:

  • (Integer, nil)


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

optional :second, Integer