Class: Neovim::Message::Response Private
This class is part of a private API. You should avoid using this class if possible, as it may be removed or be changed in the future.
Instance Attribute Summary collapse
-
#error ⇒ Object
Returns the value of attribute error.
-
#request_id ⇒ Object
Returns the value of attribute request_id.
-
#value ⇒ Object
Returns the value of attribute value.
Instance Method Summary collapse
- #received(handlers) ⇒ Object private
- #to_a ⇒ Object private
Instance Attribute Details
#error ⇒ Object
Returns the value of attribute error
46 47 48 |
# File 'lib/neovim/message.rb', line 46 def error @error end |
#request_id ⇒ Object
Returns the value of attribute request_id
46 47 48 |
# File 'lib/neovim/message.rb', line 46 def request_id @request_id end |
#value ⇒ Object
Returns the value of attribute value
46 47 48 |
# File 'lib/neovim/message.rb', line 46 def value @value end |
Instance Method Details
#received(handlers) ⇒ Object
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
51 52 53 |
# File 'lib/neovim/message.rb', line 51 def received(handlers) handlers.delete(request_id).call(self) end |
#to_a ⇒ Object
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
47 48 49 |
# File 'lib/neovim/message.rb', line 47 def to_a [1, request_id, error, value] end |