module RestDSL
Constants
- VERSION
Attributes
config[R]
config_file_location[R]
use_config_file[R]
Public Class Methods
config_file_location=(arg)
click to toggle source
# File lib/rest_dsl.rb, line 13 def config_file_location=(arg) @config_file_location = arg load_config end
configuration()
click to toggle source
# File lib/rest_dsl.rb, line 22 def configuration @config end
default_configs()
click to toggle source
# File lib/rest_dsl.rb, line 18 def default_configs {} end
Private Class Methods
load_config()
click to toggle source
# File lib/rest_dsl.rb, line 27 def load_config @config = if File.exist?("#{config_file_location}/rest_dsl.yml") Psych.load_file("#{config_file_location}/rest_dsl.yml") else default_configs end end