Class: Neovim::Message::Response Private

Inherits:
Struct
  • Object
show all
Defined in:
lib/neovim/message.rb

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

Instance Method Summary collapse

Instance Attribute Details

#errorObject

Returns the value of attribute error


46
47
48
# File 'lib/neovim/message.rb', line 46

def error
  @error
end

#request_idObject

Returns the value of attribute request_id


46
47
48
# File 'lib/neovim/message.rb', line 46

def request_id
  @request_id
end

#valueObject

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[request_id].call(self)
end

#to_aObject

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