Class: ActionService::Invocation::InvocationRequest

Inherits:
Object
  • Object
show all
Defined in:
lib/action_service/invocation.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#blockObject

Returns the value of attribute block.



191
192
193
# File 'lib/action_service/invocation.rb', line 191

def block
  @block
end

#block_paramsObject (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_nameObject

Returns the value of attribute method_name.



189
190
191
# File 'lib/action_service/invocation.rb', line 189

def method_name
  @method_name
end

#paramsObject

Returns the value of attribute params.



190
191
192
# File 'lib/action_service/invocation.rb', line 190

def params
  @params
end

#public_method_nameObject (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

#typeObject

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

Returns:

  • (Boolean)


203
204
205
# File 'lib/action_service/invocation.rb', line 203

def concrete?
  @type == ConcreteInvocation ? true : false
end

#unexported_concrete?Boolean

Returns:

  • (Boolean)


207
208
209
# File 'lib/action_service/invocation.rb', line 207

def unexported_concrete?
  @type == UnexportedConcreteInvocation ? true : false
end