Class: Google::Apis::CloudbillingV1beta::Datetime

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

Overview

A datetime value.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ Datetime

Returns a new instance of Datetime.



225
226
227
# File 'lib/google/apis/cloudbilling_v1beta/classes.rb', line 225

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

Instance Attribute Details

#bit_field_datetime_secondsFixnum

Represents bit field encoding of year/month/day/hour/minute/second. See class DatetimeValue in civil_time.h for details of encoding. Corresponds to the JSON property bitFieldDatetimeSeconds

Returns:

  • (Fixnum)


218
219
220
# File 'lib/google/apis/cloudbilling_v1beta/classes.rb', line 218

def bit_field_datetime_seconds
  @bit_field_datetime_seconds
end

#nanosFixnum

Non-negative fractions of a second at nanosecond resolution. Corresponds to the JSON property nanos

Returns:

  • (Fixnum)


223
224
225
# File 'lib/google/apis/cloudbilling_v1beta/classes.rb', line 223

def nanos
  @nanos
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



230
231
232
233
# File 'lib/google/apis/cloudbilling_v1beta/classes.rb', line 230

def update!(**args)
  @bit_field_datetime_seconds = args[:bit_field_datetime_seconds] if args.key?(:bit_field_datetime_seconds)
  @nanos = args[:nanos] if args.key?(:nanos)
end