Class: Google::Apis::CloudbillingV1beta::Datetime
- Inherits:
-
Object
- Object
- Google::Apis::CloudbillingV1beta::Datetime
- 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
-
#bit_field_datetime_seconds ⇒ Fixnum
Represents bit field encoding of year/month/day/hour/minute/second.
-
#nanos ⇒ Fixnum
Non-negative fractions of a second at nanosecond resolution.
Instance Method Summary collapse
-
#initialize(**args) ⇒ Datetime
constructor
A new instance of Datetime.
-
#update!(**args) ⇒ Object
Update properties of this object.
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_seconds ⇒ Fixnum
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
218 219 220 |
# File 'lib/google/apis/cloudbilling_v1beta/classes.rb', line 218 def bit_field_datetime_seconds @bit_field_datetime_seconds end |
#nanos ⇒ Fixnum
Non-negative fractions of a second at nanosecond resolution.
Corresponds to the JSON property nanos
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 |