Class: Morale::Command
- Inherits:
-
Thor
- Object
- Thor
- Morale::Command
- Defined in:
- lib/morale/command.rb
Class Method Summary collapse
Instance Method Summary collapse
- #account(id) ⇒ Object
- #accounts(email = "") ⇒ Object
- #login ⇒ Object
- #project(id) ⇒ Object
- #projects ⇒ Object
- #ticket(command = "") ⇒ Object
- #tickets ⇒ Object
Class Method Details
.client ⇒ Object
53 54 55 |
# File 'lib/morale/command.rb', line 53 def client Morale::Authorization.client end |
Instance Method Details
#account(id) ⇒ Object
23 24 25 |
# File 'lib/morale/command.rb', line 23 def account(id) Morale::Commands::Account.select id end |
#accounts(email = "") ⇒ Object
18 19 20 |
# File 'lib/morale/command.rb', line 18 def accounts(email="") Morale::Commands::Account.list email, .change end |
#login ⇒ Object
12 13 14 |
# File 'lib/morale/command.rb', line 12 def login Morale::Commands::Authorization.login end |
#project(id) ⇒ Object
34 35 36 |
# File 'lib/morale/command.rb', line 34 def project(id) Morale::Commands::Project.select id end |
#projects ⇒ Object
29 30 31 |
# File 'lib/morale/command.rb', line 29 def projects Morale::Commands::Project.list .change end |