Class: SDM::SQLServer

Inherits:
Object
  • Object
show all
Defined in:
lib/models/porcelain.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(id: nil, name: nil, healthy: nil, hostname: nil, username: nil, password: nil, database: nil, port_override: nil, schema: nil, port: nil, override_database: nil) ⇒ SQLServer

Returns a new instance of SQLServer.



3138
3139
3140
3141
3142
3143
3144
3145
3146
3147
3148
3149
3150
3151
3152
3153
3154
3155
3156
3157
3158
3159
3160
3161
3162
3163
3164
3165
3166
3167
3168
3169
3170
3171
3172
3173
3174
3175
3176
3177
3178
3179
3180
3181
3182
3183
3184
3185
3186
3187
3188
3189
3190
3191
3192
3193
3194
# File 'lib/models/porcelain.rb', line 3138

def initialize(
	id:nil \
,
	name:nil \
,
	healthy:nil \
,
	hostname:nil \
,
	username:nil \
,
	password:nil \
,
	database:nil \
,
	port_override:nil \
,
	schema:nil \
,
	port:nil \
,
	override_database:nil \
)
	if id != nil
		@id = id
	end
	if name != nil
		@name = name
	end
	if healthy != nil
		@healthy = healthy
	end
	if hostname != nil
		@hostname = hostname
	end
	if username != nil
		@username = username
	end
	if password != nil
		@password = password
	end
	if database != nil
		@database = database
	end
	if port_override != nil
		@port_override = port_override
	end
	if schema != nil
		@schema = schema
	end
	if port != nil
		@port = port
	end
	if override_database != nil
		@override_database = override_database
	end
end

Instance Attribute Details

#databaseObject

Returns the value of attribute database.



3129
3130
3131
# File 'lib/models/porcelain.rb', line 3129

def database
  @database
end

#healthyObject

True if the datasource is reachable and the credentials are valid.



3121
3122
3123
# File 'lib/models/porcelain.rb', line 3121

def healthy
  @healthy
end

#hostnameObject

Returns the value of attribute hostname.



3123
3124
3125
# File 'lib/models/porcelain.rb', line 3123

def hostname
  @hostname
end

#idObject

Unique identifier of the Resource.



3117
3118
3119
# File 'lib/models/porcelain.rb', line 3117

def id
  @id
end

#nameObject

Unique human-readable name of the Resource.



3119
3120
3121
# File 'lib/models/porcelain.rb', line 3119

def name
  @name
end

#override_databaseObject

Returns the value of attribute override_database.



3137
3138
3139
# File 'lib/models/porcelain.rb', line 3137

def override_database
  @override_database
end

#passwordObject

Returns the value of attribute password.



3127
3128
3129
# File 'lib/models/porcelain.rb', line 3127

def password
  @password
end

#portObject

Returns the value of attribute port.



3135
3136
3137
# File 'lib/models/porcelain.rb', line 3135

def port
  @port
end

#port_overrideObject

Returns the value of attribute port_override.



3131
3132
3133
# File 'lib/models/porcelain.rb', line 3131

def port_override
  @port_override
end

#schemaObject

Returns the value of attribute schema.



3133
3134
3135
# File 'lib/models/porcelain.rb', line 3133

def schema
  @schema
end

#usernameObject

Returns the value of attribute username.



3125
3126
3127
# File 'lib/models/porcelain.rb', line 3125

def username
  @username
end