Class: SDM::Redis

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, password: nil, port: nil) ⇒ Redis

Returns a new instance of Redis.



2947
2948
2949
2950
2951
2952
2953
2954
2955
2956
2957
2958
2959
2960
2961
2962
2963
2964
2965
2966
2967
2968
2969
2970
2971
2972
2973
2974
2975
2976
2977
2978
2979
2980
2981
2982
2983
# File 'lib/models/porcelain.rb', line 2947

def initialize(
	id:nil \
,
	name:nil \
,
	healthy:nil \
,
	hostname:nil \
,
	port_override: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 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.



2938
2939
2940
# File 'lib/models/porcelain.rb', line 2938

def healthy
  @healthy
end

#hostnameObject

Returns the value of attribute hostname.



2940
2941
2942
# File 'lib/models/porcelain.rb', line 2940

def hostname
  @hostname
end

#idObject

Unique identifier of the Resource.



2934
2935
2936
# File 'lib/models/porcelain.rb', line 2934

def id
  @id
end

#nameObject

Unique human-readable name of the Resource.



2936
2937
2938
# File 'lib/models/porcelain.rb', line 2936

def name
  @name
end

#passwordObject

Returns the value of attribute password.



2944
2945
2946
# File 'lib/models/porcelain.rb', line 2944

def password
  @password
end

#portObject

Returns the value of attribute port.



2946
2947
2948
# File 'lib/models/porcelain.rb', line 2946

def port
  @port
end

#port_overrideObject

Returns the value of attribute port_override.



2942
2943
2944
# File 'lib/models/porcelain.rb', line 2942

def port_override
  @port_override
end