Class: SDM::Greenplum
- Inherits:
-
Object
- Object
- SDM::Greenplum
- 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) ⇒ Greenplum
constructor
A new instance of Greenplum.
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) ⇒ Greenplum
Returns a new instance of Greenplum.
2592 2593 2594 2595 2596 2597 2598 2599 2600 2601 2602 2603 2604 2605 2606 2607 2608 2609 2610 2611 2612 2613 2614 2615 2616 2617 2618 2619 2620 2621 2622 2623 2624 2625 2626 2627 2628 2629 2630 2631 2632 2633 2634 2635 2636 2637 2638 2639 2640 2641 2642 2643 |
# File 'lib/models/porcelain.rb', line 2592 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.
2585 2586 2587 |
# File 'lib/models/porcelain.rb', line 2585 def database @database end |
#healthy ⇒ Object
True if the datasource is reachable and the credentials are valid.
2577 2578 2579 |
# File 'lib/models/porcelain.rb', line 2577 def healthy @healthy end |
#hostname ⇒ Object
Returns the value of attribute hostname.
2579 2580 2581 |
# File 'lib/models/porcelain.rb', line 2579 def hostname @hostname end |
#id ⇒ Object
Unique identifier of the Resource.
2573 2574 2575 |
# File 'lib/models/porcelain.rb', line 2573 def id @id end |
#name ⇒ Object
Unique human-readable name of the Resource.
2575 2576 2577 |
# File 'lib/models/porcelain.rb', line 2575 def name @name end |
#override_database ⇒ Object
Returns the value of attribute override_database.
2591 2592 2593 |
# File 'lib/models/porcelain.rb', line 2591 def override_database @override_database end |
#password ⇒ Object
Returns the value of attribute password.
2583 2584 2585 |
# File 'lib/models/porcelain.rb', line 2583 def password @password end |
#port ⇒ Object
Returns the value of attribute port.
2589 2590 2591 |
# File 'lib/models/porcelain.rb', line 2589 def port @port end |
#port_override ⇒ Object
Returns the value of attribute port_override.
2587 2588 2589 |
# File 'lib/models/porcelain.rb', line 2587 def port_override @port_override end |
#username ⇒ Object
Returns the value of attribute username.
2581 2582 2583 |
# File 'lib/models/porcelain.rb', line 2581 def username @username end |