Class: ActionService::Invocation::InvocationRequest
- Inherits:
-
Object
- Object
- ActionService::Invocation::InvocationRequest
- Defined in:
- lib/action_service/invocation.rb
Instance Attribute Summary collapse
-
#block ⇒ Object
Returns the value of attribute block.
-
#block_params ⇒ Object
readonly
Returns the value of attribute block_params.
-
#method_name ⇒ Object
Returns the value of attribute method_name.
-
#params ⇒ Object
Returns the value of attribute params.
-
#public_method_name ⇒ Object
readonly
Returns the value of attribute public_method_name.
-
#type ⇒ Object
Returns the value of attribute type.
Instance Method Summary collapse
- #concrete? ⇒ Boolean
-
#initialize(type, public_method_name, method_name, params = nil) ⇒ InvocationRequest
constructor
A new instance of InvocationRequest.
- #unexported_concrete? ⇒ Boolean
Constructor Details
#initialize(type, public_method_name, method_name, params = nil) ⇒ InvocationRequest
Returns a new instance of InvocationRequest.
194 195 196 197 198 199 200 201 |
# File 'lib/action_service/invocation.rb', line 194 def initialize(type, public_method_name, method_name, params=nil) @type = type @public_method_name = public_method_name @method_name = method_name @params = params || [] @block = nil @block_params = [] end |
Instance Attribute Details
#block ⇒ Object
Returns the value of attribute block.
191 192 193 |
# File 'lib/action_service/invocation.rb', line 191 def block @block end |
#block_params ⇒ Object (readonly)
Returns the value of attribute block_params.
192 193 194 |
# File 'lib/action_service/invocation.rb', line 192 def block_params @block_params end |
#method_name ⇒ Object
Returns the value of attribute method_name.
189 190 191 |
# File 'lib/action_service/invocation.rb', line 189 def method_name @method_name end |
#params ⇒ Object
Returns the value of attribute params.
190 191 192 |
# File 'lib/action_service/invocation.rb', line 190 def params @params end |
#public_method_name ⇒ Object (readonly)
Returns the value of attribute public_method_name.
188 189 190 |
# File 'lib/action_service/invocation.rb', line 188 def public_method_name @public_method_name end |
#type ⇒ Object
Returns the value of attribute type.
187 188 189 |
# File 'lib/action_service/invocation.rb', line 187 def type @type end |
Instance Method Details
#concrete? ⇒ Boolean
203 204 205 |
# File 'lib/action_service/invocation.rb', line 203 def concrete? @type == ConcreteInvocation ? true : false end |
#unexported_concrete? ⇒ Boolean
207 208 209 |
# File 'lib/action_service/invocation.rb', line 207 def unexported_concrete? @type == UnexportedConcreteInvocation ? true : false end |