質問編集履歴

3

修正

2018/02/22 07:28

投稿

aisu001223
aisu001223

スコア26

test CHANGED
File without changes
test CHANGED
@@ -8,15 +8,15 @@
8
8
 
9
9
  エラーコード
10
10
 
11
+ a.rb:30:in `<main>': uninitialized constant COMPLETED (NameError)
11
12
 
12
-
13
- uninitialized constant COMPLETED (NameError)
14
-
15
- Did you mean? Complex
13
+ Did you mean? Complex
16
14
 
17
15
 
18
16
 
17
+ ```loop
18
+
19
- ```require "net/http"
19
+ require "net/http"
20
20
 
21
21
  require "uri"
22
22
 
@@ -70,9 +70,13 @@
70
70
 
71
71
  puts getchildorders["child_order_state"]
72
72
 
73
- getchildorders["child_order_state"] = COMPLETED
73
+ 30>行目 if getchildorders["child_order_state"] = COMPLETED
74
74
 
75
75
  puts yes
76
+
77
+ end
78
+
79
+ end
76
80
 
77
81
  コード
78
82
 

2

修正

2018/02/22 07:28

投稿

aisu001223
aisu001223

スコア26

test CHANGED
File without changes
test CHANGED
@@ -10,7 +10,9 @@
10
10
 
11
11
 
12
12
 
13
- 25:in `': uninitialized constant JSON (NameError)
13
+ uninitialized constant COMPLETED (NameError)
14
+
15
+ Did you mean? Complex
14
16
 
15
17
 
16
18
 
@@ -19,6 +21,8 @@
19
21
  require "uri"
20
22
 
21
23
  require "openssl"
24
+
25
+ require "json"
22
26
 
23
27
  key = "ほげほげ"
24
28
 

1

編集

2018/02/22 06:11

投稿

aisu001223
aisu001223

スコア26

test CHANGED
File without changes
test CHANGED
@@ -14,11 +14,7 @@
14
14
 
15
15
 
16
16
 
17
- サンプルコード
18
-
19
-
20
-
21
- require "net/http"
17
+ ```require "net/http"
22
18
 
23
19
  require "uri"
24
20
 
@@ -73,3 +69,7 @@
73
69
  getchildorders["child_order_state"] = COMPLETED
74
70
 
75
71
  puts yes
72
+
73
+ コード
74
+
75
+ ```