language_server-protocol 0.4.0 → 0.5.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (95) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +5 -1
  3. data/README.md +2 -0
  4. data/bin/m +17 -0
  5. data/language_server-protocol.gemspec +1 -0
  6. data/lib/language_server/protocol/interface/apply_workspace_edit_params.rb +5 -1
  7. data/lib/language_server/protocol/interface/apply_workspace_edit_response.rb +5 -1
  8. data/lib/language_server/protocol/interface/cancel_params.rb +5 -1
  9. data/lib/language_server/protocol/interface/client_capabilities.rb +5 -1
  10. data/lib/language_server/protocol/interface/code_action_context.rb +5 -1
  11. data/lib/language_server/protocol/interface/code_action_params.rb +5 -1
  12. data/lib/language_server/protocol/interface/code_lens.rb +5 -1
  13. data/lib/language_server/protocol/interface/code_lens_options.rb +5 -1
  14. data/lib/language_server/protocol/interface/code_lens_params.rb +5 -1
  15. data/lib/language_server/protocol/interface/code_lens_registration_options.rb +5 -1
  16. data/lib/language_server/protocol/interface/command.rb +5 -1
  17. data/lib/language_server/protocol/interface/completion_item.rb +5 -1
  18. data/lib/language_server/protocol/interface/completion_list.rb +5 -1
  19. data/lib/language_server/protocol/interface/completion_options.rb +5 -1
  20. data/lib/language_server/protocol/interface/completion_registration_options.rb +5 -1
  21. data/lib/language_server/protocol/interface/diagnostic.rb +5 -1
  22. data/lib/language_server/protocol/interface/did_change_configuration_params.rb +5 -1
  23. data/lib/language_server/protocol/interface/did_change_text_document_params.rb +5 -1
  24. data/lib/language_server/protocol/interface/did_change_watched_files_params.rb +5 -1
  25. data/lib/language_server/protocol/interface/did_close_text_document_params.rb +5 -1
  26. data/lib/language_server/protocol/interface/did_open_text_document_params.rb +5 -1
  27. data/lib/language_server/protocol/interface/did_save_text_document_params.rb +5 -1
  28. data/lib/language_server/protocol/interface/document_filter.rb +5 -1
  29. data/lib/language_server/protocol/interface/document_formatting_params.rb +5 -1
  30. data/lib/language_server/protocol/interface/document_highlight.rb +5 -1
  31. data/lib/language_server/protocol/interface/document_link.rb +5 -1
  32. data/lib/language_server/protocol/interface/document_link_options.rb +5 -1
  33. data/lib/language_server/protocol/interface/document_link_params.rb +5 -1
  34. data/lib/language_server/protocol/interface/document_link_registration_options.rb +5 -1
  35. data/lib/language_server/protocol/interface/document_on_type_formatting_options.rb +5 -1
  36. data/lib/language_server/protocol/interface/document_on_type_formatting_params.rb +5 -1
  37. data/lib/language_server/protocol/interface/document_on_type_formatting_registration_options.rb +5 -1
  38. data/lib/language_server/protocol/interface/document_range_formatting_params.rb +5 -1
  39. data/lib/language_server/protocol/interface/document_symbol_params.rb +5 -1
  40. data/lib/language_server/protocol/interface/execute_command_options.rb +5 -1
  41. data/lib/language_server/protocol/interface/execute_command_params.rb +5 -1
  42. data/lib/language_server/protocol/interface/execute_command_registration_options.rb +5 -1
  43. data/lib/language_server/protocol/interface/file_event.rb +5 -1
  44. data/lib/language_server/protocol/interface/formatting_options.rb +5 -1
  45. data/lib/language_server/protocol/interface/hover.rb +5 -1
  46. data/lib/language_server/protocol/interface/initialize_error.rb +5 -1
  47. data/lib/language_server/protocol/interface/initialize_params.rb +5 -1
  48. data/lib/language_server/protocol/interface/initialize_result.rb +5 -1
  49. data/lib/language_server/protocol/interface/location.rb +5 -1
  50. data/lib/language_server/protocol/interface/log_message_params.rb +5 -1
  51. data/lib/language_server/protocol/interface/message.rb +5 -1
  52. data/lib/language_server/protocol/interface/message_action_item.rb +5 -1
  53. data/lib/language_server/protocol/interface/notification_message.rb +5 -1
  54. data/lib/language_server/protocol/interface/parameter_information.rb +5 -1
  55. data/lib/language_server/protocol/interface/position.rb +5 -1
  56. data/lib/language_server/protocol/interface/publish_diagnostics_params.rb +5 -1
  57. data/lib/language_server/protocol/interface/range.rb +5 -1
  58. data/lib/language_server/protocol/interface/reference_context.rb +5 -1
  59. data/lib/language_server/protocol/interface/reference_params.rb +5 -1
  60. data/lib/language_server/protocol/interface/registration.rb +5 -1
  61. data/lib/language_server/protocol/interface/registration_params.rb +5 -1
  62. data/lib/language_server/protocol/interface/rename_params.rb +5 -1
  63. data/lib/language_server/protocol/interface/request_message.rb +5 -1
  64. data/lib/language_server/protocol/interface/response_error.rb +5 -1
  65. data/lib/language_server/protocol/interface/response_message.rb +5 -1
  66. data/lib/language_server/protocol/interface/save_options.rb +5 -1
  67. data/lib/language_server/protocol/interface/server_capabilities.rb +5 -1
  68. data/lib/language_server/protocol/interface/show_message_params.rb +5 -1
  69. data/lib/language_server/protocol/interface/show_message_request_params.rb +5 -1
  70. data/lib/language_server/protocol/interface/signature_help.rb +5 -1
  71. data/lib/language_server/protocol/interface/signature_help_options.rb +5 -1
  72. data/lib/language_server/protocol/interface/signature_help_registration_options.rb +5 -1
  73. data/lib/language_server/protocol/interface/signature_information.rb +5 -1
  74. data/lib/language_server/protocol/interface/symbol_information.rb +5 -1
  75. data/lib/language_server/protocol/interface/text_document_change_registration_options.rb +5 -1
  76. data/lib/language_server/protocol/interface/text_document_client_capabilities.rb +5 -1
  77. data/lib/language_server/protocol/interface/text_document_content_change_event.rb +5 -1
  78. data/lib/language_server/protocol/interface/text_document_edit.rb +5 -1
  79. data/lib/language_server/protocol/interface/text_document_identifier.rb +5 -1
  80. data/lib/language_server/protocol/interface/text_document_item.rb +5 -1
  81. data/lib/language_server/protocol/interface/text_document_position_params.rb +5 -1
  82. data/lib/language_server/protocol/interface/text_document_registration_options.rb +5 -1
  83. data/lib/language_server/protocol/interface/text_document_save_registration_options.rb +5 -1
  84. data/lib/language_server/protocol/interface/text_document_sync_options.rb +5 -1
  85. data/lib/language_server/protocol/interface/text_edit.rb +5 -1
  86. data/lib/language_server/protocol/interface/unregistration.rb +5 -1
  87. data/lib/language_server/protocol/interface/unregistration_params.rb +5 -1
  88. data/lib/language_server/protocol/interface/versioned_text_document_identifier.rb +5 -1
  89. data/lib/language_server/protocol/interface/will_save_text_document_params.rb +5 -1
  90. data/lib/language_server/protocol/interface/workspace_client_capabilites.rb +5 -1
  91. data/lib/language_server/protocol/interface/workspace_edit.rb +5 -1
  92. data/lib/language_server/protocol/interface/workspace_symbol_params.rb +5 -1
  93. data/lib/language_server/protocol/version.rb +1 -1
  94. data/scripts/generateFiles.ts +5 -1
  95. metadata +17 -2
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 63cb173af8aeba11730787b15dd8f0705312c6ae
4
- data.tar.gz: 0656572f2038cb80e5286c1f208347cd741d80e6
3
+ metadata.gz: b5b1946f0c8ff10e2027a66e7c6ae37eefdd90f0
4
+ data.tar.gz: 5e6cee742980db7696bdaccee85b67d45adaf24d
5
5
  SHA512:
6
- metadata.gz: d19b0791d8e9c04dce75d82ada89a894c2425d938b1d269b79ab1f84f9f10ac9272f0bbd63c5e25153f9c16cf93a858aad3e9b03850c9419480974d3316d5f15
7
- data.tar.gz: 96653a9b13dc8cb14b39fc2bd2a0da988c841bae306d576695d9ca4df8658d22cc4c2eff16be976fb58cad443a594cdb105c5801692c47dc9f28abfd4ef783f9
6
+ metadata.gz: 6c991d607374d916a536c2e5366aa3eabe476180dc0d6b69b86886d4ec88d31a6a6a377b29e434e7a8daddbbb295bb9345dfb5aad1ea1e434c0cb67866e33b88
7
+ data.tar.gz: 6954bcf52987ab2439071bfc7e7512b7f6c341caf31d5627ed0ae545826a59e1d3f3b2b6d6ef7a170b3ad391512670c6bba51470e2ba6a7f7c4534a6eedfe3b3
data/CHANGELOG.md CHANGED
@@ -1,5 +1,9 @@
1
1
  # Change log
2
2
 
3
- ## 0.3.1
3
+ ## 0.5.0
4
+
5
+ - Add #to_hash to keep compatibility with Rails (#10)
6
+
7
+ ## 0.4.0
4
8
 
5
9
  - Fix handling `extends`
data/README.md CHANGED
@@ -20,6 +20,8 @@ Or install it yourself as:
20
20
 
21
21
  ## Usage
22
22
 
23
+ :memo: Currently, this gem supports only stdio as transport layer.
24
+
23
25
  ```ruby
24
26
  require "language_server-protocol"
25
27
 
data/bin/m ADDED
@@ -0,0 +1,17 @@
1
+ #!/usr/bin/env ruby
2
+ # frozen_string_literal: true
3
+ #
4
+ # This file was generated by Bundler.
5
+ #
6
+ # The application 'm' is installed as part of a gem, and
7
+ # this file is here to facilitate running it.
8
+ #
9
+
10
+ require "pathname"
11
+ ENV["BUNDLE_GEMFILE"] ||= File.expand_path("../../Gemfile",
12
+ Pathname.new(__FILE__).realpath)
13
+
14
+ require "rubygems"
15
+ require "bundler/setup"
16
+
17
+ load Gem.bin_path("m", "m")
@@ -27,4 +27,5 @@ Gem::Specification.new do |spec|
27
27
  spec.add_development_dependency "pry-byebug"
28
28
  spec.add_development_dependency "minitest-power_assert"
29
29
  spec.add_development_dependency "m"
30
+ spec.add_development_dependency "activesupport"
30
31
  end
@@ -20,8 +20,12 @@ module LanguageServer
20
20
 
21
21
  attr_reader :attributes
22
22
 
23
+ def to_hash
24
+ attributes
25
+ end
26
+
23
27
  def to_json(*args)
24
- attributes.to_json(*args)
28
+ to_hash.to_json(*args)
25
29
  end
26
30
  end
27
31
  end
@@ -20,8 +20,12 @@ module LanguageServer
20
20
 
21
21
  attr_reader :attributes
22
22
 
23
+ def to_hash
24
+ attributes
25
+ end
26
+
23
27
  def to_json(*args)
24
- attributes.to_json(*args)
28
+ to_hash.to_json(*args)
25
29
  end
26
30
  end
27
31
  end
@@ -20,8 +20,12 @@ module LanguageServer
20
20
 
21
21
  attr_reader :attributes
22
22
 
23
+ def to_hash
24
+ attributes
25
+ end
26
+
23
27
  def to_json(*args)
24
- attributes.to_json(*args)
28
+ to_hash.to_json(*args)
25
29
  end
26
30
  end
27
31
  end
@@ -38,8 +38,12 @@ module LanguageServer
38
38
 
39
39
  attr_reader :attributes
40
40
 
41
+ def to_hash
42
+ attributes
43
+ end
44
+
41
45
  def to_json(*args)
42
- attributes.to_json(*args)
46
+ to_hash.to_json(*args)
43
47
  end
44
48
  end
45
49
  end
@@ -24,8 +24,12 @@ module LanguageServer
24
24
 
25
25
  attr_reader :attributes
26
26
 
27
+ def to_hash
28
+ attributes
29
+ end
30
+
27
31
  def to_json(*args)
28
- attributes.to_json(*args)
32
+ to_hash.to_json(*args)
29
33
  end
30
34
  end
31
35
  end
@@ -41,8 +41,12 @@ module LanguageServer
41
41
 
42
42
  attr_reader :attributes
43
43
 
44
+ def to_hash
45
+ attributes
46
+ end
47
+
44
48
  def to_json(*args)
45
- attributes.to_json(*args)
49
+ to_hash.to_json(*args)
46
50
  end
47
51
  end
48
52
  end
@@ -46,8 +46,12 @@ module LanguageServer
46
46
 
47
47
  attr_reader :attributes
48
48
 
49
+ def to_hash
50
+ attributes
51
+ end
52
+
49
53
  def to_json(*args)
50
- attributes.to_json(*args)
54
+ to_hash.to_json(*args)
51
55
  end
52
56
  end
53
57
  end
@@ -23,8 +23,12 @@ module LanguageServer
23
23
 
24
24
  attr_reader :attributes
25
25
 
26
+ def to_hash
27
+ attributes
28
+ end
29
+
26
30
  def to_json(*args)
27
- attributes.to_json(*args)
31
+ to_hash.to_json(*args)
28
32
  end
29
33
  end
30
34
  end
@@ -20,8 +20,12 @@ module LanguageServer
20
20
 
21
21
  attr_reader :attributes
22
22
 
23
+ def to_hash
24
+ attributes
25
+ end
26
+
23
27
  def to_json(*args)
24
- attributes.to_json(*args)
28
+ to_hash.to_json(*args)
25
29
  end
26
30
  end
27
31
  end
@@ -20,8 +20,12 @@ module LanguageServer
20
20
 
21
21
  attr_reader :attributes
22
22
 
23
+ def to_hash
24
+ attributes
25
+ end
26
+
23
27
  def to_json(*args)
24
- attributes.to_json(*args)
28
+ to_hash.to_json(*args)
25
29
  end
26
30
  end
27
31
  end
@@ -39,8 +39,12 @@ module LanguageServer
39
39
 
40
40
  attr_reader :attributes
41
41
 
42
+ def to_hash
43
+ attributes
44
+ end
45
+
42
46
  def to_json(*args)
43
- attributes.to_json(*args)
47
+ to_hash.to_json(*args)
44
48
  end
45
49
  end
46
50
  end
@@ -136,8 +136,12 @@ module LanguageServer
136
136
 
137
137
  attr_reader :attributes
138
138
 
139
+ def to_hash
140
+ attributes
141
+ end
142
+
139
143
  def to_json(*args)
140
- attributes.to_json(*args)
144
+ to_hash.to_json(*args)
141
145
  end
142
146
  end
143
147
  end
@@ -34,8 +34,12 @@ module LanguageServer
34
34
 
35
35
  attr_reader :attributes
36
36
 
37
+ def to_hash
38
+ attributes
39
+ end
40
+
37
41
  def to_json(*args)
38
- attributes.to_json(*args)
42
+ to_hash.to_json(*args)
39
43
  end
40
44
  end
41
45
  end
@@ -33,8 +33,12 @@ module LanguageServer
33
33
 
34
34
  attr_reader :attributes
35
35
 
36
+ def to_hash
37
+ attributes
38
+ end
39
+
36
40
  def to_json(*args)
37
- attributes.to_json(*args)
41
+ to_hash.to_json(*args)
38
42
  end
39
43
  end
40
44
  end
@@ -30,8 +30,12 @@ module LanguageServer
30
30
 
31
31
  attr_reader :attributes
32
32
 
33
+ def to_hash
34
+ attributes
35
+ end
36
+
33
37
  def to_json(*args)
34
- attributes.to_json(*args)
38
+ to_hash.to_json(*args)
35
39
  end
36
40
  end
37
41
  end
@@ -58,8 +58,12 @@ module LanguageServer
58
58
 
59
59
  attr_reader :attributes
60
60
 
61
+ def to_hash
62
+ attributes
63
+ end
64
+
61
65
  def to_json(*args)
62
- attributes.to_json(*args)
66
+ to_hash.to_json(*args)
63
67
  end
64
68
  end
65
69
  end
@@ -20,8 +20,12 @@ module LanguageServer
20
20
 
21
21
  attr_reader :attributes
22
22
 
23
+ def to_hash
24
+ attributes
25
+ end
26
+
23
27
  def to_json(*args)
24
- attributes.to_json(*args)
28
+ to_hash.to_json(*args)
25
29
  end
26
30
  end
27
31
  end
@@ -31,8 +31,12 @@ module LanguageServer
31
31
 
32
32
  attr_reader :attributes
33
33
 
34
+ def to_hash
35
+ attributes
36
+ end
37
+
34
38
  def to_json(*args)
35
- attributes.to_json(*args)
39
+ to_hash.to_json(*args)
36
40
  end
37
41
  end
38
42
  end
@@ -20,8 +20,12 @@ module LanguageServer
20
20
 
21
21
  attr_reader :attributes
22
22
 
23
+ def to_hash
24
+ attributes
25
+ end
26
+
23
27
  def to_json(*args)
24
- attributes.to_json(*args)
28
+ to_hash.to_json(*args)
25
29
  end
26
30
  end
27
31
  end
@@ -20,8 +20,12 @@ module LanguageServer
20
20
 
21
21
  attr_reader :attributes
22
22
 
23
+ def to_hash
24
+ attributes
25
+ end
26
+
23
27
  def to_json(*args)
24
- attributes.to_json(*args)
28
+ to_hash.to_json(*args)
25
29
  end
26
30
  end
27
31
  end
@@ -20,8 +20,12 @@ module LanguageServer
20
20
 
21
21
  attr_reader :attributes
22
22
 
23
+ def to_hash
24
+ attributes
25
+ end
26
+
23
27
  def to_json(*args)
24
- attributes.to_json(*args)
28
+ to_hash.to_json(*args)
25
29
  end
26
30
  end
27
31
  end
@@ -30,8 +30,12 @@ module LanguageServer
30
30
 
31
31
  attr_reader :attributes
32
32
 
33
+ def to_hash
34
+ attributes
35
+ end
36
+
33
37
  def to_json(*args)
34
- attributes.to_json(*args)
38
+ to_hash.to_json(*args)
35
39
  end
36
40
  end
37
41
  end
@@ -38,8 +38,12 @@ module LanguageServer
38
38
 
39
39
  attr_reader :attributes
40
40
 
41
+ def to_hash
42
+ attributes
43
+ end
44
+
41
45
  def to_json(*args)
42
- attributes.to_json(*args)
46
+ to_hash.to_json(*args)
43
47
  end
44
48
  end
45
49
  end
@@ -29,8 +29,12 @@ module LanguageServer
29
29
 
30
30
  attr_reader :attributes
31
31
 
32
+ def to_hash
33
+ attributes
34
+ end
35
+
32
36
  def to_json(*args)
33
- attributes.to_json(*args)
37
+ to_hash.to_json(*args)
34
38
  end
35
39
  end
36
40
  end
@@ -34,8 +34,12 @@ module LanguageServer
34
34
 
35
35
  attr_reader :attributes
36
36
 
37
+ def to_hash
38
+ attributes
39
+ end
40
+
37
41
  def to_json(*args)
38
- attributes.to_json(*args)
42
+ to_hash.to_json(*args)
39
43
  end
40
44
  end
41
45
  end
@@ -33,8 +33,12 @@ module LanguageServer
33
33
 
34
34
  attr_reader :attributes
35
35
 
36
+ def to_hash
37
+ attributes
38
+ end
39
+
36
40
  def to_json(*args)
37
- attributes.to_json(*args)
41
+ to_hash.to_json(*args)
38
42
  end
39
43
  end
40
44
  end
@@ -23,8 +23,12 @@ module LanguageServer
23
23
 
24
24
  attr_reader :attributes
25
25
 
26
+ def to_hash
27
+ attributes
28
+ end
29
+
26
30
  def to_json(*args)
27
- attributes.to_json(*args)
31
+ to_hash.to_json(*args)
28
32
  end
29
33
  end
30
34
  end
@@ -20,8 +20,12 @@ module LanguageServer
20
20
 
21
21
  attr_reader :attributes
22
22
 
23
+ def to_hash
24
+ attributes
25
+ end
26
+
23
27
  def to_json(*args)
24
- attributes.to_json(*args)
28
+ to_hash.to_json(*args)
25
29
  end
26
30
  end
27
31
  end
@@ -20,8 +20,12 @@ module LanguageServer
20
20
 
21
21
  attr_reader :attributes
22
22
 
23
+ def to_hash
24
+ attributes
25
+ end
26
+
23
27
  def to_json(*args)
24
- attributes.to_json(*args)
28
+ to_hash.to_json(*args)
25
29
  end
26
30
  end
27
31
  end
@@ -32,8 +32,12 @@ module LanguageServer
32
32
 
33
33
  attr_reader :attributes
34
34
 
35
+ def to_hash
36
+ attributes
37
+ end
38
+
35
39
  def to_json(*args)
36
- attributes.to_json(*args)
40
+ to_hash.to_json(*args)
37
41
  end
38
42
  end
39
43
  end
@@ -47,8 +47,12 @@ module LanguageServer
47
47
 
48
48
  attr_reader :attributes
49
49
 
50
+ def to_hash
51
+ attributes
52
+ end
53
+
50
54
  def to_json(*args)
51
- attributes.to_json(*args)
55
+ to_hash.to_json(*args)
52
56
  end
53
57
  end
54
58
  end
@@ -29,8 +29,12 @@ module LanguageServer
29
29
 
30
30
  attr_reader :attributes
31
31
 
32
+ def to_hash
33
+ attributes
34
+ end
35
+
32
36
  def to_json(*args)
33
- attributes.to_json(*args)
37
+ to_hash.to_json(*args)
34
38
  end
35
39
  end
36
40
  end
@@ -38,8 +38,12 @@ module LanguageServer
38
38
 
39
39
  attr_reader :attributes
40
40
 
41
+ def to_hash
42
+ attributes
43
+ end
44
+
41
45
  def to_json(*args)
42
- attributes.to_json(*args)
46
+ to_hash.to_json(*args)
43
47
  end
44
48
  end
45
49
  end
@@ -20,8 +20,12 @@ module LanguageServer
20
20
 
21
21
  attr_reader :attributes
22
22
 
23
+ def to_hash
24
+ attributes
25
+ end
26
+
23
27
  def to_json(*args)
24
- attributes.to_json(*args)
28
+ to_hash.to_json(*args)
25
29
  end
26
30
  end
27
31
  end
@@ -23,8 +23,12 @@ module LanguageServer
23
23
 
24
24
  attr_reader :attributes
25
25
 
26
+ def to_hash
27
+ attributes
28
+ end
29
+
26
30
  def to_json(*args)
27
- attributes.to_json(*args)
31
+ to_hash.to_json(*args)
28
32
  end
29
33
  end
30
34
  end
@@ -29,8 +29,12 @@ module LanguageServer
29
29
 
30
30
  attr_reader :attributes
31
31
 
32
+ def to_hash
33
+ attributes
34
+ end
35
+
32
36
  def to_json(*args)
33
- attributes.to_json(*args)
37
+ to_hash.to_json(*args)
34
38
  end
35
39
  end
36
40
  end
@@ -23,8 +23,12 @@ module LanguageServer
23
23
 
24
24
  attr_reader :attributes
25
25
 
26
+ def to_hash
27
+ attributes
28
+ end
29
+
26
30
  def to_json(*args)
27
- attributes.to_json(*args)
31
+ to_hash.to_json(*args)
28
32
  end
29
33
  end
30
34
  end
@@ -32,8 +32,12 @@ module LanguageServer
32
32
 
33
33
  attr_reader :attributes
34
34
 
35
+ def to_hash
36
+ attributes
37
+ end
38
+
35
39
  def to_json(*args)
36
- attributes.to_json(*args)
40
+ to_hash.to_json(*args)
37
41
  end
38
42
  end
39
43
  end
@@ -32,8 +32,12 @@ module LanguageServer
32
32
 
33
33
  attr_reader :attributes
34
34
 
35
+ def to_hash
36
+ attributes
37
+ end
38
+
35
39
  def to_json(*args)
36
- attributes.to_json(*args)
40
+ to_hash.to_json(*args)
37
41
  end
38
42
  end
39
43
  end
@@ -33,8 +33,12 @@ module LanguageServer
33
33
 
34
34
  attr_reader :attributes
35
35
 
36
+ def to_hash
37
+ attributes
38
+ end
39
+
36
40
  def to_json(*args)
37
- attributes.to_json(*args)
41
+ to_hash.to_json(*args)
38
42
  end
39
43
  end
40
44
  end