Class: Helm::Commands::Info

Inherits:
Command
  • Object
show all
Defined in:
lib/helm/commands/info.rb

Instance Attribute Summary

Attributes inherited from Command

#session

Instance Method Summary collapse

Methods inherited from Command

#initialize, #parameters

Constructor Details

This class inherits a constructor from Helm::Commands::Command

Instance Method Details

#runObject



4
5
6
7
8
9
10
11
12
13
14
15
# File 'lib/helm/commands/info.rb', line 4

def run
  parameters :ticket

  ticket = session.ticket

  puts "##{ticket.id} #{ticket.title}"

  if ticket.description
    puts "=="
    puts ticket.description
  end
end