Class: RCicindela
- Inherits:
-
Object
- Object
- RCicindela
- Defined in:
- lib/rcicindela.rb
Defined Under Namespace
Classes: APIError
Constant Summary collapse
- VERSION =
'0.3.1'
Instance Attribute Summary collapse
-
#base_path ⇒ Object
readonly
Returns the value of attribute base_path.
-
#default_params ⇒ Object
readonly
Returns the value of attribute default_params.
-
#host ⇒ Object
readonly
Returns the value of attribute host.
-
#port ⇒ Object
readonly
Returns the value of attribute port.
-
#timeout ⇒ Object
readonly
Returns the value of attribute timeout.
Instance Method Summary collapse
-
#initialize(host, options = {}) ⇒ RCicindela
constructor
A new instance of RCicindela.
Constructor Details
#initialize(host, options = {}) ⇒ RCicindela
Returns a new instance of RCicindela.
16 17 18 19 20 21 22 23 24 |
# File 'lib/rcicindela.rb', line 16 def initialize(host, = {}) @host = host @port = [:port] || 80 @base_path = [:base_path] || '/' @timeout = [:timeout] || 1 @default_params = [:default_params] || {} @base_path.sub!(/\/+$/, '') end |
Instance Attribute Details
#base_path ⇒ Object (readonly)
Returns the value of attribute base_path.
14 15 16 |
# File 'lib/rcicindela.rb', line 14 def base_path @base_path end |
#default_params ⇒ Object (readonly)
Returns the value of attribute default_params.
14 15 16 |
# File 'lib/rcicindela.rb', line 14 def default_params @default_params end |
#host ⇒ Object (readonly)
Returns the value of attribute host.
14 15 16 |
# File 'lib/rcicindela.rb', line 14 def host @host end |
#port ⇒ Object (readonly)
Returns the value of attribute port.
14 15 16 |
# File 'lib/rcicindela.rb', line 14 def port @port end |
#timeout ⇒ Object (readonly)
Returns the value of attribute timeout.
14 15 16 |
# File 'lib/rcicindela.rb', line 14 def timeout @timeout end |