Class: TorgApi::Settings
- Inherits:
-
Object
- Object
- TorgApi::Settings
- Defined in:
- lib/torg_api/settings.rb
Class Attribute Summary collapse
-
.service_user ⇒ Object
readonly
Returns the value of attribute service_user.
-
.torg_url ⇒ Object
readonly
Returns the value of attribute torg_url.
Class Method Summary collapse
-
.service_user_configure(opts = {}) ⇒ Object
Configure through hash.
- .torg_url_configure(opts = {}) ⇒ Object
Class Attribute Details
.service_user ⇒ Object (readonly)
Returns the value of attribute service_user.
16 17 18 |
# File 'lib/torg_api/settings.rb', line 16 def service_user @service_user end |
.torg_url ⇒ Object (readonly)
Returns the value of attribute torg_url.
17 18 19 |
# File 'lib/torg_api/settings.rb', line 17 def torg_url @torg_url end |
Class Method Details
.service_user_configure(opts = {}) ⇒ Object
Configure through hash
7 8 9 |
# File 'lib/torg_api/settings.rb', line 7 def self.service_user_configure(opts = {}) opts.each { |k, v| @service_user[k.to_sym] = v } end |
.torg_url_configure(opts = {}) ⇒ Object
11 12 13 |
# File 'lib/torg_api/settings.rb', line 11 def self.torg_url_configure(opts = {}) opts.each { |k,v| @torg_url[k.to_sym] = v } end |