Class: Ynl::Models::RequestReply
- Inherits:
-
Object
- Object
- Ynl::Models::RequestReply
- Defined in:
- 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.
173 174 175 176 |
# File 'lib/ynl/models.rb', line 173 def initialize(request:, reply:) @request = request @reply = reply end |
Instance Attribute Details
#reply ⇒ Object (readonly)
Returns the value of attribute reply.
171 172 173 |
# File 'lib/ynl/models.rb', line 171 def reply @reply end |
#request ⇒ Object (readonly)
Returns the value of attribute request.
171 172 173 |
# File 'lib/ynl/models.rb', line 171 def request @request end |
Instance Method Details
#resolve(f) ⇒ Object
178 179 180 181 182 |
# File 'lib/ynl/models.rb', line 178 def resolve(f) @request = @request&.resolve(f) @reply = @reply&.resolve(f) self end |