module ToBoolean
extend types to support to_bool
Public Instance Methods
to_bool()
click to toggle source
# File lib/moesif_api/api_helper.rb, line 141 def to_bool return true if self == true || self.to_s.strip =~ /^(true|yes|y|1)$/i return false end