Module: SoftLayer

Included in:
SL
Defined in:
lib/softlayer/messaging.rb

Defined Under Namespace

Modules: Messaging

Class Method Summary collapse

Class Method Details

.endpointsObject



5
6
7
# File 'lib/softlayer/messaging.rb', line 5

def endpoints
  @endpoints ||= load_endpoint
end

.load_endpointObject



9
10
11
12
13
# File 'lib/softlayer/messaging.rb', line 9

def load_endpoint
  f = File.open(File.join(File.dirname(File.expand_path(__FILE__)),
    '../../resources/config.json'), "r")
  JSON.parse(f.read)['endpoints']
end