Class: Chid::Commands::Pr

Inherits:
Chid::Command show all
Defined in:
lib/chid/commands/pr.rb

Constant Summary

Constants inherited from Chid::Command

Chid::Command::COMMANDS

Instance Attribute Summary

Attributes inherited from Chid::Command

#options

Instance Method Summary collapse

Methods inherited from Chid::Command

command, help, #initialize, map_options_with_values, run

Constructor Details

This class inherits a constructor from Chid::Command

Instance Method Details

#runObject



26
27
28
29
30
31
32
33
# File 'lib/chid/commands/pr.rb', line 26

def run
  json_prs = GitHubApi.prs(by: user)
  msg      = build_msg(json_prs)

  send_msg(msg)

  msg
end