Class: RPass::Display

Inherits:
Object
  • Object
show all
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 (, index)
  <<-EOF
#{title(, index)}
  - id: #{.id}
  - username: #{.username}
  - url: #{.url}
  - group: #{.group}
  EOF
end

#title(account, index) ⇒ Object



15
16
17
# File 'lib/rpass/display.rb', line 15

def title(, index)
  "[#{index}] - #{.name}:".green
end