Module: SoftLayer
- Included in:
- SL
- Defined in:
- lib/softlayer/messaging.rb
Defined Under Namespace
Modules: Messaging
Class Method Summary collapse
Class Method Details
.endpoints ⇒ Object
5 6 7 |
# File 'lib/softlayer/messaging.rb', line 5 def endpoints @endpoints ||= load_endpoint end |
.load_endpoint ⇒ Object
9 10 11 12 13 |
# File 'lib/softlayer/messaging.rb', line 9 def load_endpoint f = File.open(File.join(File.dirname(File.(__FILE__)), '../../resources/config.json'), "r") JSON.parse(f.read)['endpoints'] end |