Class: Google::Apis::ChatV1::DateTimeInput

Inherits:
Object
  • Object
show all
Includes:
Google::Apis::Core::Hashable, Google::Apis::Core::JsonObjectSupport
Defined in:
lib/google/apis/chat_v1/classes.rb,
lib/google/apis/chat_v1/representations.rb,
lib/google/apis/chat_v1/representations.rb

Overview

Date and time input values. Not supported by Chat apps.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ DateTimeInput

Returns a new instance of DateTimeInput.



616
617
618
# File 'lib/google/apis/chat_v1/classes.rb', line 616

def initialize(**args)
   update!(**args)
end

Instance Attribute Details

#has_dateBoolean Also known as: has_date?

Whether the datetime input includes a calendar date. Corresponds to the JSON property hasDate

Returns:

  • (Boolean)


602
603
604
# File 'lib/google/apis/chat_v1/classes.rb', line 602

def has_date
  @has_date
end

#has_timeBoolean Also known as: has_time?

Whether the datetime input includes a timestamp. Corresponds to the JSON property hasTime

Returns:

  • (Boolean)


608
609
610
# File 'lib/google/apis/chat_v1/classes.rb', line 608

def has_time
  @has_time
end

#ms_since_epochFixnum

Time since epoch time, in milliseconds. Corresponds to the JSON property msSinceEpoch

Returns:

  • (Fixnum)


614
615
616
# File 'lib/google/apis/chat_v1/classes.rb', line 614

def ms_since_epoch
  @ms_since_epoch
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



621
622
623
624
625
# File 'lib/google/apis/chat_v1/classes.rb', line 621

def update!(**args)
  @has_date = args[:has_date] if args.key?(:has_date)
  @has_time = args[:has_time] if args.key?(:has_time)
  @ms_since_epoch = args[:ms_since_epoch] if args.key?(:ms_since_epoch)
end