Class: SDM::Cassandra
- Inherits:
-
Object
- Object
- SDM::Cassandra
- Defined in:
- lib/models/porcelain.rb
Instance Attribute Summary collapse
-
#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.
-
#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.
-
#tls_required ⇒ Object
Returns the value of attribute tls_required.
-
#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, port_override: nil, port: nil, tls_required: nil) ⇒ Cassandra
constructor
A new instance of Cassandra.
Constructor Details
#initialize(id: nil, name: nil, healthy: nil, hostname: nil, username: nil, password: nil, port_override: nil, port: nil, tls_required: nil) ⇒ Cassandra
Returns a new instance of Cassandra.
618 619 620 621 622 623 624 625 626 627 628 629 630 631 632 633 634 635 636 637 638 639 640 641 642 643 644 645 646 647 648 649 650 651 652 653 654 655 656 657 658 659 660 661 662 663 664 |
# File 'lib/models/porcelain.rb', line 618 def initialize( id:nil \ , name:nil \ , healthy:nil \ , hostname:nil \ , username:nil \ , password:nil \ , port_override:nil \ , port:nil \ , tls_required: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 if tls_required != nil @tls_required = tls_required end end |
Instance Attribute Details
#healthy ⇒ Object
True if the datasource is reachable and the credentials are valid.
605 606 607 |
# File 'lib/models/porcelain.rb', line 605 def healthy @healthy end |
#hostname ⇒ Object
Returns the value of attribute hostname.
607 608 609 |
# File 'lib/models/porcelain.rb', line 607 def hostname @hostname end |
#id ⇒ Object
Unique identifier of the Resource.
601 602 603 |
# File 'lib/models/porcelain.rb', line 601 def id @id end |
#name ⇒ Object
Unique human-readable name of the Resource.
603 604 605 |
# File 'lib/models/porcelain.rb', line 603 def name @name end |
#password ⇒ Object
Returns the value of attribute password.
611 612 613 |
# File 'lib/models/porcelain.rb', line 611 def password @password end |
#port ⇒ Object
Returns the value of attribute port.
615 616 617 |
# File 'lib/models/porcelain.rb', line 615 def port @port end |
#port_override ⇒ Object
Returns the value of attribute port_override.
613 614 615 |
# File 'lib/models/porcelain.rb', line 613 def port_override @port_override end |
#tls_required ⇒ Object
Returns the value of attribute tls_required.
617 618 619 |
# File 'lib/models/porcelain.rb', line 617 def tls_required @tls_required end |
#username ⇒ Object
Returns the value of attribute username.
609 610 611 |
# File 'lib/models/porcelain.rb', line 609 def username @username end |