Class: Google::Resourcemanager::Property::Integer

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

Overview

A Puppet property that holds an integer

Class Method Summary collapse

Instance Method Summary collapse

Methods inherited from Base

#insync?

Class Method Details

.api_munge(value) ⇒ Object



44
45
46
47
# File 'lib/google/resourcemanager/property/integer.rb', line 44

def self.api_munge(value)
  return if value.nil?
  value.to_i
end

.unsafe_munge(value) ⇒ Object



35
36
37
38
# File 'lib/google/resourcemanager/property/integer.rb', line 35

def self.unsafe_munge(value)
  return if value.nil?
  value.to_i
end

Instance Method Details

#unsafe_munge(value) ⇒ Object



40
41
42
# File 'lib/google/resourcemanager/property/integer.rb', line 40

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