Class: PortaText::Command::Api::Calls

Inherits:
Base
  • Object
show all
Defined in:
lib/portatext/command/api/calls.rb

Overview

The calls endpoint. github.com/PortaText/docs/wiki/REST-API#api_calls

Author

Marcelo Gornstein ([email protected])

Copyright

Copyright © 2015 PortaText

License

Apache-2.0

Instance Attribute Summary

Attributes inherited from Base

#client

Instance Method Summary collapse

Methods inherited from Base

#accept_content_type, #body, #content_type, #delete, #get, #initialize, #patch, #post, #put, #set

Constructor Details

This class inherits a constructor from PortaText::Command::Base

Instance Method Details

#dial_timeout(timeout) ⇒ Object



23
24
25
# File 'lib/portatext/command/api/calls.rb', line 23

def dial_timeout(timeout)
  set :dial_timeout, timeout
end

#endpoint(_method) ⇒ Object



31
32
33
# File 'lib/portatext/command/api/calls.rb', line 31

def endpoint(_method)
  'calls'
end

#flow(call_flow) ⇒ Object



27
28
29
# File 'lib/portatext/command/api/calls.rb', line 27

def flow(call_flow)
  set :flow, call_flow
end

#from(from) ⇒ Object



15
16
17
# File 'lib/portatext/command/api/calls.rb', line 15

def from(from)
  set :from, from
end

#outbound_trunk_id(trunk_id) ⇒ Object



19
20
21
# File 'lib/portatext/command/api/calls.rb', line 19

def outbound_trunk_id(trunk_id)
  set :outbound_trunk_id, trunk_id
end

#to(to) ⇒ Object



11
12
13
# File 'lib/portatext/command/api/calls.rb', line 11

def to(to)
  set :to, to
end