class Comet::ServerMetaVersionInfo
def to_hash
-
(Hash)
- The complete object as a Ruby hash
def to_hash ret = {} ret['Version'] = @version ret['VersionCodename'] = @version_codename ret['StorageRole'] = @storage_role ret['AuthenticationRole'] = @authentication_role ret['SoftwareBuildRole'] = @software_build_role ret['OverseerRole'] = @constellation_role__legacy ret['ConstellationRole'] = @constellation_role unless @experimental_options.nil? ret['ExperimentalOptions'] = @experimental_options end ret['ServerStartTime'] = @server_start_time ret['ServerStartHash'] = @server_start_hash ret['CurrentTime'] = @current_time ret['ServerLicenseHash'] = @server_license_hash ret['ServerLicenseFeaturesAll'] = @server_license_features_all ret['ServerLicenseFeatureSet'] = @server_license_feature_set ret['LicenseValidUntil'] = @license_valid_until ret['EmailsSentSuccessfully'] = @emails_sent_successfully ret['EmailsSentErrors'] = @emails_sent_errors ret['EmailsWaitingInQueue'] = @emails_waiting_in_queue ret['ScheduledEmailThreadCurrentState'] = @scheduled_email_thread_current_state ret['ScheduledEmailThreadLastCalculateDurationNanos'] = @scheduled_email_thread_last_calculate_duration_nanos ret['ScheduledEmailThreadWaitingUntil'] = @scheduled_email_thread_waiting_until ret['ScheduledEmailThreadLastWakeTime'] = @scheduled_email_thread_last_wake_time ret['ScheduledEmailThreadLastWakeSentEmails'] = @scheduled_email_thread_last_wake_sent_emails ret['SelfBackup'] = @self_backup @unknown_json_fields.each do |k, v| ret[k] = v end ret end