Class: SDM::Druid
- Inherits:
-
Object
- Object
- SDM::Druid
- 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.
-
#username ⇒ Object
Returns the value of attribute username.
Instance Method Summary collapse
-
#initialize(id: nil, name: nil, healthy: nil, hostname: nil, port_override: nil, username: nil, password: nil, port: nil) ⇒ Druid
constructor
A new instance of Druid.
Constructor Details
#initialize(id: nil, name: nil, healthy: nil, hostname: nil, port_override: nil, username: nil, password: nil, port: nil) ⇒ Druid
Returns a new instance of Druid.
684 685 686 687 688 689 690 691 692 693 694 695 696 697 698 699 700 701 702 703 704 705 706 707 708 709 710 711 712 713 714 715 716 717 718 719 720 721 722 723 724 725 |
# File 'lib/models/porcelain.rb', line 684 def initialize( id:nil \ , name:nil \ , healthy:nil \ , hostname:nil \ , port_override:nil \ , username:nil \ , password: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 port_override != nil @port_override = port_override end if username != nil @username = username end if password != nil @password = password end if port != nil @port = port end end |
Instance Attribute Details
#healthy ⇒ Object
True if the datasource is reachable and the credentials are valid.
673 674 675 |
# File 'lib/models/porcelain.rb', line 673 def healthy @healthy end |
#hostname ⇒ Object
Returns the value of attribute hostname.
675 676 677 |
# File 'lib/models/porcelain.rb', line 675 def hostname @hostname end |
#id ⇒ Object
Unique identifier of the Resource.
669 670 671 |
# File 'lib/models/porcelain.rb', line 669 def id @id end |
#name ⇒ Object
Unique human-readable name of the Resource.
671 672 673 |
# File 'lib/models/porcelain.rb', line 671 def name @name end |
#password ⇒ Object
Returns the value of attribute password.
681 682 683 |
# File 'lib/models/porcelain.rb', line 681 def password @password end |
#port ⇒ Object
Returns the value of attribute port.
683 684 685 |
# File 'lib/models/porcelain.rb', line 683 def port @port end |
#port_override ⇒ Object
Returns the value of attribute port_override.
677 678 679 |
# File 'lib/models/porcelain.rb', line 677 def port_override @port_override end |
#username ⇒ Object
Returns the value of attribute username.
679 680 681 |
# File 'lib/models/porcelain.rb', line 679 def username @username end |