Class: SmoothOperator::OperatorCall::Base
- Inherits:
-
Object
- Object
- SmoothOperator::OperatorCall::Base
- Defined in:
- lib/smooth_operator/operator_call/base.rb
Instance Attribute Summary collapse
-
#body ⇒ Object
readonly
Returns the value of attribute body.
-
#connection ⇒ Object
readonly
Returns the value of attribute connection.
-
#endpoint_pass ⇒ Object
readonly
Returns the value of attribute endpoint_pass.
-
#endpoint_user ⇒ Object
readonly
Returns the value of attribute endpoint_user.
-
#http_verb ⇒ Object
readonly
Returns the value of attribute http_verb.
-
#operator_class ⇒ Object
readonly
Returns the value of attribute operator_class.
-
#operator_options ⇒ Object
readonly
Returns the value of attribute operator_options.
-
#options ⇒ Object
readonly
Returns the value of attribute options.
-
#params ⇒ Object
readonly
Returns the value of attribute params.
-
#relative_path ⇒ Object
readonly
Returns the value of attribute relative_path.
Instance Method Summary collapse
-
#initialize(operator_class, http_verb, relative_path, data, options) ⇒ Base
constructor
A new instance of Base.
Constructor Details
#initialize(operator_class, http_verb, relative_path, data, options) ⇒ Base
Returns a new instance of Base.
9 10 11 12 13 14 15 16 17 18 19 20 21 |
# File 'lib/smooth_operator/operator_call/base.rb', line 9 def initialize(operator_class, http_verb, relative_path, data, ) @operator_class, @http_verb = operator_class, http_verb @params, @body = strip_params(http_verb, data) @connection, , = () @relative_path = build_relative_path(relative_path, ) @endpoint_user = [:endpoint_user] || @operator_class.endpoint_user @endpoint_pass = [:endpoint_pass] || @operator_class.endpoint_pass end |
Instance Attribute Details
#body ⇒ Object (readonly)
Returns the value of attribute body.
7 8 9 |
# File 'lib/smooth_operator/operator_call/base.rb', line 7 def body @body end |
#connection ⇒ Object (readonly)
Returns the value of attribute connection.
7 8 9 |
# File 'lib/smooth_operator/operator_call/base.rb', line 7 def connection @connection end |
#endpoint_pass ⇒ Object (readonly)
Returns the value of attribute endpoint_pass.
7 8 9 |
# File 'lib/smooth_operator/operator_call/base.rb', line 7 def endpoint_pass @endpoint_pass end |
#endpoint_user ⇒ Object (readonly)
Returns the value of attribute endpoint_user.
7 8 9 |
# File 'lib/smooth_operator/operator_call/base.rb', line 7 def endpoint_user @endpoint_user end |
#http_verb ⇒ Object (readonly)
Returns the value of attribute http_verb.
7 8 9 |
# File 'lib/smooth_operator/operator_call/base.rb', line 7 def http_verb @http_verb end |
#operator_class ⇒ Object (readonly)
Returns the value of attribute operator_class.
7 8 9 |
# File 'lib/smooth_operator/operator_call/base.rb', line 7 def operator_class @operator_class end |
#operator_options ⇒ Object (readonly)
Returns the value of attribute operator_options.
7 8 9 |
# File 'lib/smooth_operator/operator_call/base.rb', line 7 def end |
#options ⇒ Object (readonly)
Returns the value of attribute options.
7 8 9 |
# File 'lib/smooth_operator/operator_call/base.rb', line 7 def end |
#params ⇒ Object (readonly)
Returns the value of attribute params.
7 8 9 |
# File 'lib/smooth_operator/operator_call/base.rb', line 7 def params @params end |
#relative_path ⇒ Object (readonly)
Returns the value of attribute relative_path.
7 8 9 |
# File 'lib/smooth_operator/operator_call/base.rb', line 7 def relative_path @relative_path end |