Class: SDM::Teradata

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

Returns a new instance of Teradata.



3397
3398
3399
3400
3401
3402
3403
3404
3405
3406
3407
3408
3409
3410
3411
3412
3413
3414
3415
3416
3417
3418
3419
3420
3421
3422
3423
3424
3425
3426
3427
3428
3429
3430
3431
3432
3433
3434
3435
3436
3437
3438
# File 'lib/models/porcelain.rb', line 3397

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

Instance Attribute Details

#healthyObject

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



3386
3387
3388
# File 'lib/models/porcelain.rb', line 3386

def healthy
  @healthy
end

#hostnameObject

Returns the value of attribute hostname.



3388
3389
3390
# File 'lib/models/porcelain.rb', line 3388

def hostname
  @hostname
end

#idObject

Unique identifier of the Resource.



3382
3383
3384
# File 'lib/models/porcelain.rb', line 3382

def id
  @id
end

#nameObject

Unique human-readable name of the Resource.



3384
3385
3386
# File 'lib/models/porcelain.rb', line 3384

def name
  @name
end

#passwordObject

Returns the value of attribute password.



3392
3393
3394
# File 'lib/models/porcelain.rb', line 3392

def password
  @password
end

#portObject

Returns the value of attribute port.



3396
3397
3398
# File 'lib/models/porcelain.rb', line 3396

def port
  @port
end

#port_overrideObject

Returns the value of attribute port_override.



3394
3395
3396
# File 'lib/models/porcelain.rb', line 3394

def port_override
  @port_override
end

#usernameObject

Returns the value of attribute username.



3390
3391
3392
# File 'lib/models/porcelain.rb', line 3390

def username
  @username
end