Method: Umbreo::Models::CloudProvider#initialize

Defined in:
lib/umbreo/models/cloud_provider.rb

#initialize(credentials = {}, slug_or_id = nil) ⇒ CloudProvider

Init Global Variable



13
14
15
16
17
18
19
20
21
22
# File 'lib/umbreo/models/cloud_provider.rb', line 13

def initialize(credentials = {}, slug_or_id = nil)
	if credentials.present?
		@email    = credentials[:email]
		@api_key  = credentials[:api_key]
		@endpoint = credentials[:end_point] || SERVER_END_POINT
	end

	@errors = []
	@slug_or_id = slug_or_id
end