Class: BoundioV2::Application

Inherits:
Thor
  • Object
show all
Defined in:
lib/boundioV2/application.rb

Instance Method Summary collapse

Instance Method Details

#callObject



5
6
7
8
# File 'lib/boundioV2/application.rb', line 5

def call
  call = Call.create(options)
  puts call.id
end

#fileObject



22
23
24
25
# File 'lib/boundioV2/application.rb', line 22

def file
  file = AudioFile.create(options[:file] ? {:file => File.new(options[:file], "rb")} : options)
  puts file.id
end

#statusObject



12
13
14
15
16
17
18
# File 'lib/boundioV2/application.rb', line 12

def status
  if options[:tel_id]
    puts TelStatus.find(options[:tel_id])
  else
    puts TelStatus.find_all(options)
  end
end