Class: ActionService::Invocation::InvocationRequest

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

Overview

:nodoc:

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.



235
236
237
238
239
240
241
242
# File 'lib/action_service/invocation.rb', line 235

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.



232
233
234
# File 'lib/action_service/invocation.rb', line 232

def block
  @block
end

#block_paramsObject (readonly)

Returns the value of attribute block_params.



233
234
235
# File 'lib/action_service/invocation.rb', line 233

def block_params
  @block_params
end

#method_nameObject

Returns the value of attribute method_name.



230
231
232
# File 'lib/action_service/invocation.rb', line 230

def method_name
  @method_name
end

#paramsObject

Returns the value of attribute params.



231
232
233
# File 'lib/action_service/invocation.rb', line 231

def params
  @params
end

#public_method_nameObject (readonly)

Returns the value of attribute public_method_name.



229
230
231
# File 'lib/action_service/invocation.rb', line 229

def public_method_name
  @public_method_name
end

#typeObject

Returns the value of attribute type.



228
229
230
# File 'lib/action_service/invocation.rb', line 228

def type
  @type
end

Instance Method Details

#concrete?Boolean

Returns:

  • (Boolean)


244
245
246
# File 'lib/action_service/invocation.rb', line 244

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

#unexported_concrete?Boolean

Returns:

  • (Boolean)


248
249
250
# File 'lib/action_service/invocation.rb', line 248

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