Class: Tane::Commands::Claim
Class Method Summary collapse
Methods inherited from Base
Methods included from Helpers
Class Method Details
.help_text ⇒ Object
13 14 15 16 17 18 19 20 21 22 23 |
# File 'lib/tane/commands/claim.rb', line 13 def help_text <<-EOL Usage: tane claim email ido_id Notifies the app of an App.claimed event to the locally running app when the email and ido_id are passed. tane claim [email protected] 6h284ah92jcj9m2sv21f EOL end |
.process(args) ⇒ Object
4 5 6 7 8 9 10 11 |
# File 'lib/tane/commands/claim.rb', line 4 def process(args) email = args.first ido_id = args[1] event = {'category' => 'app', 'event' => 'claimed', 'data' => {'time' => Time.now, 'ido_id' => ido_id, 'email' => email}} post(data_url, event) end |