class Comet::SwiftDestinationLocation
def to_hash
-
(Hash)
- The complete object as a Ruby hash
def to_hash ret = {} unless @username.nil? ret['Username'] = @username end unless @apikey.nil? ret['APIKey'] = @apikey end unless @region.nil? ret['Region'] = @region end unless @auth_url.nil? ret['AuthURL'] = @auth_url end unless @domain.nil? ret['Domain'] = @domain end unless @tenant.nil? ret['Tenant'] = @tenant end unless @tenant_domain.nil? ret['TenantDomain'] = @tenant_domain end unless @tenant_id.nil? ret['TenantID'] = @tenant_id end unless @trust_id.nil? ret['TrustID'] = @trust_id end unless @auth_token.nil? ret['AuthToken'] = @auth_token end unless @prefix.nil? ret['Prefix'] = @prefix end unless @container.nil? ret['Container'] = @container end unless @default_container_policy.nil? ret['DefaultContainerPolicy'] = @default_container_policy end @unknown_json_fields.each do |k, v| ret[k] = v end ret end