Class: WhatCounts::HttpClient::Config
- Inherits:
-
Object
- Object
- WhatCounts::HttpClient::Config
- Defined in:
- lib/whatcounts/http_client.rb
Instance Attribute Summary collapse
-
#api_url ⇒ Object
Returns the value of attribute api_url.
-
#password ⇒ Object
Returns the value of attribute password.
-
#realm ⇒ Object
Returns the value of attribute realm.
Instance Method Summary collapse
-
#initialize ⇒ Config
constructor
A new instance of Config.
- #to_param_string ⇒ Object
Constructor Details
#initialize ⇒ Config
Returns a new instance of Config.
42 43 44 45 |
# File 'lib/whatcounts/http_client.rb', line 42 def initialize # defaults api_url 'http://api.whatcounts.com/bin/api_web' end |
Instance Attribute Details
#api_url ⇒ Object
Returns the value of attribute api_url.
41 42 43 |
# File 'lib/whatcounts/http_client.rb', line 41 def api_url @api_url end |
#password ⇒ Object
Returns the value of attribute password.
41 42 43 |
# File 'lib/whatcounts/http_client.rb', line 41 def password @password end |
#realm ⇒ Object
Returns the value of attribute realm.
41 42 43 |
# File 'lib/whatcounts/http_client.rb', line 41 def realm @realm end |
Instance Method Details
#to_param_string ⇒ Object
46 47 48 |
# File 'lib/whatcounts/http_client.rb', line 46 def to_param_string @param_string ||= "r=#{realm}&pwd=#{password}" end |