Class: MethodDecorator::Models::Call

Inherits:
Model
  • Object
show all
Defined in:
lib/method_decorator/models/call.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(klass, method_name, *args, &block) ⇒ Call

Returns a new instance of Call.



10
11
12
13
14
15
16
# File 'lib/method_decorator/models/call.rb', line 10

def initialize(klass, method_name, *args, &block)
  self.klass = klass
  self.method_name = method_name
  self.args = *args
  self.block = block
  validate!
end

Instance Attribute Details

#argsObject

Returns the value of attribute args.



8
9
10
# File 'lib/method_decorator/models/call.rb', line 8

def args
  @args
end

#blockObject

Returns the value of attribute block.



8
9
10
# File 'lib/method_decorator/models/call.rb', line 8

def block
  @block
end

#klassObject

Returns the value of attribute klass.



8
9
10
# File 'lib/method_decorator/models/call.rb', line 8

def klass
  @klass
end

#method_nameObject

Returns the value of attribute method_name.



8
9
10
# File 'lib/method_decorator/models/call.rb', line 8

def method_name
  @method_name
end