Class: Google::Resourcemanager::Data::Time
- Inherits:
-
Time
- Object
- Time
- Google::Resourcemanager::Data::Time
- Defined in:
- lib/google/resourcemanager/property/time.rb
Overview
A Time that always returns a ISO8601 String
Instance Method Summary collapse
Instance Method Details
#to_s ⇒ Object
35 36 37 38 39 40 41 42 |
# File 'lib/google/resourcemanager/property/time.rb', line 35 def to_s # All GCP APIs expect timestamps in the ISO-8601 / RFC3339 format # Overriding the .to_s method ensures that Ruby will get a # ISO-8601 timestamp at the last moment and ensures the timestamp # format is abstracted away. iso8601 end |