Class: SDM::HTTPNoAuth

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, url: nil, healthcheck_path: nil, headers_blacklist: nil, default_path: nil, subdomain: nil) ⇒ HTTPNoAuth

Returns a new instance of HTTPNoAuth.



1010
1011
1012
1013
1014
1015
1016
1017
1018
1019
1020
1021
1022
1023
1024
1025
1026
1027
1028
1029
1030
1031
1032
1033
1034
1035
1036
1037
1038
1039
1040
1041
1042
1043
1044
1045
1046
1047
1048
1049
1050
1051
# File 'lib/models/porcelain.rb', line 1010

def initialize(
	id:nil \
,
	name:nil \
,
	healthy:nil \
,
	url:nil \
,
	healthcheck_path:nil \
,
	headers_blacklist:nil \
,
	default_path:nil \
,
	subdomain:nil \
)
	if id != nil
		@id = id
	end
	if name != nil
		@name = name
	end
	if healthy != nil
		@healthy = healthy
	end
	if url != nil
		@url = url
	end
	if healthcheck_path != nil
		@healthcheck_path = healthcheck_path
	end
	if headers_blacklist != nil
		@headers_blacklist = headers_blacklist
	end
	if default_path != nil
		@default_path = default_path
	end
	if subdomain != nil
		@subdomain = subdomain
	end
end

Instance Attribute Details

#default_pathObject

Returns the value of attribute default_path.



1007
1008
1009
# File 'lib/models/porcelain.rb', line 1007

def default_path
  @default_path
end

#headers_blacklistObject

Returns the value of attribute headers_blacklist.



1005
1006
1007
# File 'lib/models/porcelain.rb', line 1005

def headers_blacklist
  @headers_blacklist
end

#healthcheck_pathObject

Returns the value of attribute healthcheck_path.



1003
1004
1005
# File 'lib/models/porcelain.rb', line 1003

def healthcheck_path
  @healthcheck_path
end

#healthyObject

True if the datasource is reachable and the credentials are valid.



999
1000
1001
# File 'lib/models/porcelain.rb', line 999

def healthy
  @healthy
end

#idObject

Unique identifier of the Resource.



995
996
997
# File 'lib/models/porcelain.rb', line 995

def id
  @id
end

#nameObject

Unique human-readable name of the Resource.



997
998
999
# File 'lib/models/porcelain.rb', line 997

def name
  @name
end

#subdomainObject

Returns the value of attribute subdomain.



1009
1010
1011
# File 'lib/models/porcelain.rb', line 1009

def subdomain
  @subdomain
end

#urlObject

Returns the value of attribute url.



1001
1002
1003
# File 'lib/models/porcelain.rb', line 1001

def url
  @url
end