Class: RPass::Display
- Inherits:
-
Object
- Object
- RPass::Display
- Defined in:
- lib/rpass/display.rb
Instance Method Summary collapse
Instance Method Details
#render_account(account, index) ⇒ Object
5 6 7 8 9 10 11 12 13 |
# File 'lib/rpass/display.rb', line 5 def render_account(account, index) <<-EOF #{title(account, index)} - id: #{account.id} - username: #{account.username} - url: #{account.url} - group: #{account.group} EOF end |
#title(account, index) ⇒ Object
15 16 17 |
# File 'lib/rpass/display.rb', line 15 def title(account, index) "[#{index}] - #{account.name}:".green end |