Class: WebService::Aboutme::Config
- Inherits:
-
Object
- Object
- WebService::Aboutme::Config
- Defined in:
- lib/webservice/aboutme/api.rb
Overview
The Config class contains information of the client configuration.
Instance Attribute Summary collapse
-
#open_timeout ⇒ Object
connection timeout (in seconds).
-
#read_timeout ⇒ Object
IO read timeout (in seconds).
-
#request_domain ⇒ Object
domain name of the request URI.
-
#request_path_base ⇒ Object
base path of the request URI.
-
#request_port ⇒ Object
port number of the request URI.
-
#user_agent ⇒ Object
name of user-agent for the client.
Instance Method Summary collapse
-
#initialize(&block) ⇒ Config
constructor
A new instance of Config.
Constructor Details
#initialize(&block) ⇒ Config
Returns a new instance of Config.
160 161 162 |
# File 'lib/webservice/aboutme/api.rb', line 160 def initialize(&block) block.call(self) end |
Instance Attribute Details
#open_timeout ⇒ Object
connection timeout (in seconds).
152 153 154 |
# File 'lib/webservice/aboutme/api.rb', line 152 def open_timeout @open_timeout end |
#read_timeout ⇒ Object
IO read timeout (in seconds).
155 156 157 |
# File 'lib/webservice/aboutme/api.rb', line 155 def read_timeout @read_timeout end |
#request_domain ⇒ Object
domain name of the request URI.
146 147 148 |
# File 'lib/webservice/aboutme/api.rb', line 146 def request_domain @request_domain end |
#request_path_base ⇒ Object
base path of the request URI. You should not change this value.
143 144 145 |
# File 'lib/webservice/aboutme/api.rb', line 143 def request_path_base @request_path_base end |
#request_port ⇒ Object
port number of the request URI.
149 150 151 |
# File 'lib/webservice/aboutme/api.rb', line 149 def request_port @request_port end |
#user_agent ⇒ Object
name of user-agent for the client.
158 159 160 |
# File 'lib/webservice/aboutme/api.rb', line 158 def user_agent @user_agent end |