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) ⇒ AsyncBrickchain
constructor
A new instance of AsyncBrickchain.
- #method_missing(sym) ⇒ Object
Constructor Details
#initialize(envelope, request) ⇒ AsyncBrickchain
Returns a new instance of AsyncBrickchain.
38 39 40 41 42 |
# File 'lib/culpa/brickchain_helpers.rb', line 38 def initialize(envelope, request) @envelope = envelope @request = request @chs = [] end |
Dynamic Method Handling
This class handles dynamic methods through the method_missing method
#method_missing(sym) ⇒ Object
44 45 46 47 |
# File 'lib/culpa/brickchain_helpers.rb', line 44 def method_missing(sym) @chs << CallHolder.new(sym.to_s, @envelope, @request, true) @chs.last end |
Instance Attribute Details
#chs ⇒ Object (readonly)
Returns the value of attribute chs.
36 37 38 |
# File 'lib/culpa/brickchain_helpers.rb', line 36 def chs @chs end |
#envelope ⇒ Object (readonly)
Returns the value of attribute envelope.
35 36 37 |
# File 'lib/culpa/brickchain_helpers.rb', line 35 def envelope @envelope end |