Class: Lsp::ResponseMessage
- Inherits:
-
Struct
- Object
- Struct
- Lsp::ResponseMessage
- Defined in:
- lib/lsp.rb
Instance Attribute Summary collapse
-
#error ⇒ Object
Returns the value of attribute error.
-
#result ⇒ Object
Returns the value of attribute result.
Class Method Summary collapse
Instance Attribute Details
#error ⇒ Object
Returns the value of attribute error
48 49 50 |
# File 'lib/lsp.rb', line 48 def error @error end |
#result ⇒ Object
Returns the value of attribute result
48 49 50 |
# File 'lib/lsp.rb', line 48 def result @result end |
Class Method Details
.error(error) ⇒ Object
53 54 55 |
# File 'lib/lsp.rb', line 53 def self.error(error) new(error, nil) end |
.successful(result) ⇒ Object
49 50 51 |
# File 'lib/lsp.rb', line 49 def self.successful(result) new(result, nil) end |