-
Notifications
You must be signed in to change notification settings - Fork 7
Conversation
f7854ad
to
8949ab5
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
コメントしました
大枠としては問題無さそうです
total = rows.find_element(:tag_name => "td").find_element(:tag_name => "p") | ||
|
||
data_hash = {} | ||
File.open("data/data.json") do |file| |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ruby をよく知らないので質問なのですが、ファイルオープン例外が発生する場合の実装は、必要ないのでしょうか?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
調べてみたのですが、正直よくわかりませんでした。
大丈夫そう
data_hash["main_summary"]["value"] = total.text.delete(",").to_i | ||
|
||
data_json = JSON.pretty_generate(data_hash, {:indent => " "}) | ||
File.open("data/data.json", mode = "w") { |f| |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
こちらも、例外時の実装は必要無いのでしょうか?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
調べてみたのですが、正直よくわかりませんでした。
大丈夫そう
c202128
to
6f9fbd7
Compare
もう1つの方を見て気づいたのですが、スネークケースとキャメルケースが混ざってます。 |
直します |
@Morichan キャメルケースに統一しました |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM!
👏 解決する issue / Resolved Issues
📝 関連する issue / Related Issues
⛏ 変更内容 / Details of Changes
📸 スクリーンショット / Screenshots