Class: SDM::Postgres
- Inherits:
-
Object
- Object
- SDM::Postgres
- Defined in:
- lib/models/porcelain.rb
Instance Attribute Summary collapse
-
#database ⇒ Object
Returns the value of attribute database.
-
#healthy ⇒ Object
True if the datasource is reachable and the credentials are valid.
-
#hostname ⇒ Object
Returns the value of attribute hostname.
-
#id ⇒ Object
Unique identifier of the Resource.
-
#name ⇒ Object
Unique human-readable name of the Resource.
-
#override_database ⇒ Object
Returns the value of attribute override_database.
-
#password ⇒ Object
Returns the value of attribute password.
-
#port ⇒ Object
Returns the value of attribute port.
-
#port_override ⇒ Object
Returns the value of attribute port_override.
-
#username ⇒ Object
Returns the value of attribute username.
Instance Method Summary collapse
-
#initialize(id: nil, name: nil, healthy: nil, hostname: nil, username: nil, password: nil, database: nil, port_override: nil, port: nil, override_database: nil) ⇒ Postgres
constructor
A new instance of Postgres.
Constructor Details
#initialize(id: nil, name: nil, healthy: nil, hostname: nil, username: nil, password: nil, database: nil, port_override: nil, port: nil, override_database: nil) ⇒ Postgres
2442 2443 2444 2445 2446 2447 2448 2449 2450 2451 2452 2453 2454 2455 2456 2457 2458 2459 2460 2461 2462 2463 2464 2465 2466 2467 2468 2469 2470 2471 2472 2473 2474 2475 2476 2477 2478 2479 2480 2481 2482 2483 2484 2485 2486 2487 2488 2489 2490 2491 2492 2493 |
# File 'lib/models/porcelain.rb', line 2442 def initialize( id:nil \ , name:nil \ , healthy:nil \ , hostname:nil \ , username:nil \ , password:nil \ , database:nil \ , port_override: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 port != nil @port = port end if override_database != nil @override_database = override_database end end |
Instance Attribute Details
#database ⇒ Object
Returns the value of attribute database.
2435 2436 2437 |
# File 'lib/models/porcelain.rb', line 2435 def database @database end |
#healthy ⇒ Object
True if the datasource is reachable and the credentials are valid.
2427 2428 2429 |
# File 'lib/models/porcelain.rb', line 2427 def healthy @healthy end |
#hostname ⇒ Object
Returns the value of attribute hostname.
2429 2430 2431 |
# File 'lib/models/porcelain.rb', line 2429 def hostname @hostname end |
#id ⇒ Object
Unique identifier of the Resource.
2423 2424 2425 |
# File 'lib/models/porcelain.rb', line 2423 def id @id end |
#name ⇒ Object
Unique human-readable name of the Resource.
2425 2426 2427 |
# File 'lib/models/porcelain.rb', line 2425 def name @name end |
#override_database ⇒ Object
Returns the value of attribute override_database.
2441 2442 2443 |
# File 'lib/models/porcelain.rb', line 2441 def override_database @override_database end |
#password ⇒ Object
Returns the value of attribute password.
2433 2434 2435 |
# File 'lib/models/porcelain.rb', line 2433 def password @password end |
#port ⇒ Object
Returns the value of attribute port.
2439 2440 2441 |
# File 'lib/models/porcelain.rb', line 2439 def port @port end |
#port_override ⇒ Object
Returns the value of attribute port_override.
2437 2438 2439 |
# File 'lib/models/porcelain.rb', line 2437 def port_override @port_override end |
#username ⇒ Object
Returns the value of attribute username.
2431 2432 2433 |
# File 'lib/models/porcelain.rb', line 2431 def username @username end |