Module: Smartdc::Configure
- Defined in:
- lib/smartdc/configure.rb
Class Method Summary collapse
Class Method Details
.attributes ⇒ Object
4 5 6 7 8 9 |
# File 'lib/smartdc/configure.rb', line 4 def attributes @attributes ||= %i[ url version ssl_verify middleware username use_key rsa_path ] end |
.options ⇒ Object
19 20 21 22 23 24 25 |
# File 'lib/smartdc/configure.rb', line 19 def Hash[ Smartdc::Configure.attributes.map do |attribute| [attribute, instance_variable_get(:"@#{attribute}")] end ] end |