Class: TorgApi::Settings

Inherits:
Object
  • Object
show all
Defined in:
lib/torg_api/settings.rb

Class Attribute Summary collapse

Class Method Summary collapse

Class Attribute Details

.service_userObject (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_urlObject (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