Class: HubSpotSDK::Models::Crm::PublicDatePoint

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

Defined Under Namespace

Modules: TimeType

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:, month:, time_type:, year:, zone_id:, hour: nil, millisecond: nil, minute: nil, second: nil, timezone_source: nil) ⇒ Object

Parameters:

  • day (Integer)

    The day component of the date.

  • month (Integer)

    The month component of the date.

  • time_type (Symbol, HubSpotSDK::Models::Crm::PublicDatePoint::TimeType)

    Specifies the type of time (DATE).

  • year (Integer)

    The year component of the date.

  • zone_id (String)

    The identifier for the time zone.

  • hour (Integer) (defaults to: nil)

    The hour component of the time.

  • millisecond (Integer) (defaults to: nil)

    The millisecond component of the time.

  • minute (Integer) (defaults to: nil)

    The minute component of the time.

  • second (Integer) (defaults to: nil)

    The second component of the time.

  • timezone_source (String) (defaults to: nil)

    The source of the time zone information.



# File 'lib/hubspot_sdk/models/crm/public_date_point.rb', line 67

Instance Attribute Details

#dayInteger

The day component of the date.

Returns:

  • (Integer)


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

required :day, Integer

#hourInteger?

The hour component of the time.

Returns:

  • (Integer, nil)


41
# File 'lib/hubspot_sdk/models/crm/public_date_point.rb', line 41

optional :hour, Integer

#millisecondInteger?

The millisecond component of the time.

Returns:

  • (Integer, nil)


47
# File 'lib/hubspot_sdk/models/crm/public_date_point.rb', line 47

optional :millisecond, Integer

#minuteInteger?

The minute component of the time.

Returns:

  • (Integer, nil)


53
# File 'lib/hubspot_sdk/models/crm/public_date_point.rb', line 53

optional :minute, Integer

#monthInteger

The month component of the date.

Returns:

  • (Integer)


17
# File 'lib/hubspot_sdk/models/crm/public_date_point.rb', line 17

required :month, Integer

#secondInteger?

The second component of the time.

Returns:

  • (Integer, nil)


59
# File 'lib/hubspot_sdk/models/crm/public_date_point.rb', line 59

optional :second, Integer

#time_typeSymbol, HubSpotSDK::Models::Crm::PublicDatePoint::TimeType

Specifies the type of time (DATE).



23
# File 'lib/hubspot_sdk/models/crm/public_date_point.rb', line 23

required :time_type, enum: -> { HubSpotSDK::Crm::PublicDatePoint::TimeType }, api_name: :timeType

#timezone_sourceString?

The source of the time zone information.

Returns:

  • (String, nil)


65
# File 'lib/hubspot_sdk/models/crm/public_date_point.rb', line 65

optional :timezone_source, String, api_name: :timezoneSource

#yearInteger

The year component of the date.

Returns:

  • (Integer)


29
# File 'lib/hubspot_sdk/models/crm/public_date_point.rb', line 29

required :year, Integer

#zone_idString

The identifier for the time zone.

Returns:

  • (String)


35
# File 'lib/hubspot_sdk/models/crm/public_date_point.rb', line 35

required :zone_id, String, api_name: :zoneId