Class: Google::Resourcemanager::Property::Time

Inherits:
Base
  • Object
show all
Defined in:
lib/google/resourcemanager/property/time.rb

Overview

A Puppet property that holds a date & time value

Class Method Summary collapse

Instance Method Summary collapse

Methods inherited from Base

#insync?

Class Method Details

.api_munge(value) ⇒ Object



58
59
60
61
# File 'lib/google/resourcemanager/property/time.rb', line 58

def self.api_munge(value)
  return if value.nil?
  Data::Time.parse(value)
end

.unsafe_munge(value) ⇒ Object



49
50
51
52
# File 'lib/google/resourcemanager/property/time.rb', line 49

def self.unsafe_munge(value)
  return if value.nil?
  Data::Time.parse(value)
end

Instance Method Details

#unsafe_munge(value) ⇒ Object



54
55
56
# File 'lib/google/resourcemanager/property/time.rb', line 54

def unsafe_munge(value)
  self.class.unsafe_munge(value)
end