Class: Culpa::AsyncBrickchain
- Inherits:
-
Object
- Object
- Culpa::AsyncBrickchain
- Defined in:
- lib/culpa/brickchain_helpers.rb
Instance Attribute Summary collapse
-
#chs ⇒ Object
readonly
Returns the value of attribute chs.
-
#envelope ⇒ Object
readonly
Returns the value of attribute envelope.
Instance Method Summary collapse
-
#initialize(envelope, request, session) ⇒ AsyncBrickchain
constructor
A new instance of AsyncBrickchain.
- #method_missing(sym) ⇒ Object
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
#chs ⇒ Object (readonly)
Returns the value of attribute chs.
41 42 43 |
# File 'lib/culpa/brickchain_helpers.rb', line 41 def chs @chs end |
#envelope ⇒ Object (readonly)
Returns the value of attribute envelope.
40 41 42 |
# File 'lib/culpa/brickchain_helpers.rb', line 40 def envelope @envelope end |