Skip to content

Commit

Permalink
Rubocop の指摘に合わせて記述を改良した
Browse files Browse the repository at this point in the history
refs #6
  • Loading branch information
ochaochaocha3 committed Feb 22, 2015
1 parent 4a3fff5 commit ad70e75
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
6 changes: 4 additions & 2 deletions lib/rgrb/plugin/online_session_search/generator.rb
Original file line number Diff line number Diff line change
Expand Up @@ -44,9 +44,11 @@ def format(sessions)
else
sessions.map do |session|
n_members_str =
(session.min_members == session.max_members) ?
"#{session.max_members}人" :
if session.min_members == session.max_members
"#{session.max_members}人"
else
"#{session.min_members}-#{session.max_members}人"
end
params = [
session.start_time.localtime('+09:00').strftime('%F %R'),
n_members_str,
Expand Down
1 change: 1 addition & 0 deletions lib/rgrb/plugin/online_session_search/session.rb
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
module RGRB
module Plugin
module OnlineSessionSearch
# オンラインセッション情報を格納するクラス
class Session
# ID
# @return [Integer]
Expand Down

0 comments on commit ad70e75

Please sign in to comment.