Class: LanguageServer::Protocol::Interface::WorkDoneProgressEnd
- Inherits:
-
Object
- Object
- LanguageServer::Protocol::Interface::WorkDoneProgressEnd
- Defined in:
- lib/language_server/protocol/interface/work_done_progress_end.rb
Instance Attribute Summary collapse
-
#attributes ⇒ Object
readonly
Returns the value of attribute attributes.
Instance Method Summary collapse
-
#initialize(kind:, message: nil) ⇒ WorkDoneProgressEnd
constructor
A new instance of WorkDoneProgressEnd.
- #kind ⇒ "end"
-
#message ⇒ string
Optional, a final message indicating to for example indicate the outcome of the operation.
- #to_hash ⇒ Object
- #to_json(*args) ⇒ Object
Constructor Details
#initialize(kind:, message: nil) ⇒ WorkDoneProgressEnd
Returns a new instance of WorkDoneProgressEnd.
5 6 7 8 9 10 11 12 |
# File 'lib/language_server/protocol/interface/work_done_progress_end.rb', line 5 def initialize(kind:, message: nil) @attributes = {} @attributes[:kind] = kind @attributes[:message] = if @attributes.freeze end |
Instance Attribute Details
#attributes ⇒ Object (readonly)
Returns the value of attribute attributes.
28 29 30 |
# File 'lib/language_server/protocol/interface/work_done_progress_end.rb', line 28 def attributes @attributes end |
Instance Method Details
#kind ⇒ "end"
15 16 17 |
# File 'lib/language_server/protocol/interface/work_done_progress_end.rb', line 15 def kind attributes.fetch(:kind) end |
#message ⇒ string
Optional, a final message indicating to for example indicate the outcome of the operation.
24 25 26 |
# File 'lib/language_server/protocol/interface/work_done_progress_end.rb', line 24 def attributes.fetch(:message) end |
#to_hash ⇒ Object
30 31 32 |
# File 'lib/language_server/protocol/interface/work_done_progress_end.rb', line 30 def to_hash attributes end |
#to_json(*args) ⇒ Object
34 35 36 |
# File 'lib/language_server/protocol/interface/work_done_progress_end.rb', line 34 def to_json(*args) to_hash.to_json(*args) end |