Class: Culpa::AsyncBrickchain

Inherits:
Object
  • Object
show all
Defined in:
lib/culpa/brickchain_helpers.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(envelope, request, session) ⇒ AsyncBrickchain

Returns a new instance of AsyncBrickchain.



43
44
45
46
47
48
# File 'lib/culpa/brickchain_helpers.rb', line 43

def initialize(envelope, request, session)
  @envelope = envelope
  @request = request
  @session = session
  @chs = []
end

Dynamic Method Handling

This class handles dynamic methods through the method_missing method

#method_missing(sym) ⇒ Object



50
51
52
53
# File 'lib/culpa/brickchain_helpers.rb', line 50

def method_missing(sym)
  @chs << CallHolder.new(sym.to_s, @envelope, @request, @session, true)
  @chs.last
end

Instance Attribute Details

#chsObject (readonly)

Returns the value of attribute chs.



41
42
43
# File 'lib/culpa/brickchain_helpers.rb', line 41

def chs
  @chs
end

#envelopeObject (readonly)

Returns the value of attribute envelope.



40
41
42
# File 'lib/culpa/brickchain_helpers.rb', line 40

def envelope
  @envelope
end