Class: OpenSecret::Delegate

Inherits:
Object
  • Object
show all
Defined in:
lib/opensecret/delegate.rb

Instance Method Summary collapse

Instance Method Details

#commandObject



6
7
8
9
10
11
12
13
14
15
16
# File 'lib/opensecret/delegate.rb', line 6

def command

  return "hello world"

  time = Time.now
  minute = time.min
  hour = time.hour % 12
  meridian_indicator = time.hour < 12 ? 'AM' : 'PM'
  "You locked me at #{minute} minutes past #{hour} o'clock, #{meridian_indicator}"

end