Class: PuppetLanguageServer::Sidecar::Protocol::ActionParams
- Inherits:
-
Hash
- Object
- Hash
- PuppetLanguageServer::Sidecar::Protocol::ActionParams
- Includes:
- Base
- Defined in:
- lib/puppet-languageserver/sidecar_protocol.rb
Instance Method Summary collapse
Instance Method Details
#from_json!(json_string) ⇒ Object
23 24 25 26 27 28 29 |
# File 'lib/puppet-languageserver/sidecar_protocol.rb', line 23 def from_json!(json_string) obj = ::JSON.parse(json_string) obj.each do |key, value| self[key] = value end self end |
#to_json(*options) ⇒ Object
19 20 21 |
# File 'lib/puppet-languageserver/sidecar_protocol.rb', line 19 def to_json(*) ::JSON.generate(to_h, ) end |