Class: SDM::Druid

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, 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

#healthyObject

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

#hostnameObject

Returns the value of attribute hostname.



675
676
677
# File 'lib/models/porcelain.rb', line 675

def hostname
  @hostname
end

#idObject

Unique identifier of the Resource.



669
670
671
# File 'lib/models/porcelain.rb', line 669

def id
  @id
end

#nameObject

Unique human-readable name of the Resource.



671
672
673
# File 'lib/models/porcelain.rb', line 671

def name
  @name
end

#passwordObject

Returns the value of attribute password.



681
682
683
# File 'lib/models/porcelain.rb', line 681

def password
  @password
end

#portObject

Returns the value of attribute port.



683
684
685
# File 'lib/models/porcelain.rb', line 683

def port
  @port
end

#port_overrideObject

Returns the value of attribute port_override.



677
678
679
# File 'lib/models/porcelain.rb', line 677

def port_override
  @port_override
end

#usernameObject

Returns the value of attribute username.



679
680
681
# File 'lib/models/porcelain.rb', line 679

def username
  @username
end