Class: Ynl::Models::RequestReply
- Inherits:
-
Object
- Object
- Ynl::Models::RequestReply
- Defined in:
- ynl/lib/ynl/models.rb
Instance Attribute Summary collapse
-
#reply ⇒ Object
readonly
Returns the value of attribute reply.
-
#request ⇒ Object
readonly
Returns the value of attribute request.
Instance Method Summary collapse
-
#initialize(request:, reply:) ⇒ RequestReply
constructor
A new instance of RequestReply.
- #resolve(f) ⇒ Object
Constructor Details
#initialize(request:, reply:) ⇒ RequestReply
Returns a new instance of RequestReply.
210 211 212 213 |
# File 'ynl/lib/ynl/models.rb', line 210 def initialize(request:, reply:) @request = request @reply = reply end |
Instance Attribute Details
#reply ⇒ Object (readonly)
Returns the value of attribute reply.
208 209 210 |
# File 'ynl/lib/ynl/models.rb', line 208 def reply @reply end |
#request ⇒ Object (readonly)
Returns the value of attribute request.
208 209 210 |
# File 'ynl/lib/ynl/models.rb', line 208 def request @request end |
Instance Method Details
#resolve(f) ⇒ Object
215 216 217 218 219 |
# File 'ynl/lib/ynl/models.rb', line 215 def resolve(f) @request = @request&.resolve(f) @reply = @reply&.resolve(f) self end |