class Comet::OSInfo
def to_hash
-
(Hash)
- The complete object as a Ruby hash
def to_hash ret = {} unless @version.nil? ret['version'] = @version end unless @distribution.nil? ret['distribution'] = @distribution end unless @build.nil? ret['build'] = @build end unless @os.nil? ret['os'] = @os end unless @arch.nil? ret['arch'] = @arch end @unknown_json_fields.each do |k, v| ret[k] = v end ret end