Class: SDM::Sybase

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, port_override: nil, port: nil, password: nil) ⇒ Sybase

Returns a new instance of Sybase.



3275
3276
3277
3278
3279
3280
3281
3282
3283
3284
3285
3286
3287
3288
3289
3290
3291
3292
3293
3294
3295
3296
3297
3298
3299
3300
3301
3302
3303
3304
3305
3306
3307
3308
3309
3310
3311
3312
3313
3314
3315
3316
# File 'lib/models/porcelain.rb', line 3275

def initialize(
  id:nil \
,
  name:nil \
,
  healthy:nil \
,
  hostname:nil \
,
  username:nil \
,
  port_override:nil \
,
  port:nil \
,
  password: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 port_override != nil
    @port_override = port_override
  end
  if port != nil
    @port = port
  end
  if password != nil
    @password = password
  end
end

Instance Attribute Details

#healthyObject

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



3264
3265
3266
# File 'lib/models/porcelain.rb', line 3264

def healthy
  @healthy
end

#hostnameObject

Returns the value of attribute hostname.



3266
3267
3268
# File 'lib/models/porcelain.rb', line 3266

def hostname
  @hostname
end

#idObject

Unique identifier of the Resource.



3260
3261
3262
# File 'lib/models/porcelain.rb', line 3260

def id
  @id
end

#nameObject

Unique human-readable name of the Resource.



3262
3263
3264
# File 'lib/models/porcelain.rb', line 3262

def name
  @name
end

#passwordObject

Returns the value of attribute password.



3274
3275
3276
# File 'lib/models/porcelain.rb', line 3274

def password
  @password
end

#portObject

Returns the value of attribute port.



3272
3273
3274
# File 'lib/models/porcelain.rb', line 3272

def port
  @port
end

#port_overrideObject

Returns the value of attribute port_override.



3270
3271
3272
# File 'lib/models/porcelain.rb', line 3270

def port_override
  @port_override
end

#usernameObject

Returns the value of attribute username.



3268
3269
3270
# File 'lib/models/porcelain.rb', line 3268

def username
  @username
end