class PortaText::Command::Api::Trunks
The trunks endpoint. github.com/PortaText/docs/wiki/REST-API#api_trunks
- Author
-
Marcelo Gornstein (marcelog@portatext.com)
- Copyright
-
Copyright © 2015
PortaText
- License
-
Apache-2.0
Public Instance Methods
endpoint(_method)
click to toggle source
# File lib/portatext/command/api/trunks.rb, line 23 def endpoint(_method) return 'trunks' if @args[:id].nil? id = @args[:id] @args.delete :id "trunks/#{id}" end
id(id)
click to toggle source
# File lib/portatext/command/api/trunks.rb, line 11 def id(id) set :id, id end
ip(ip)
click to toggle source
# File lib/portatext/command/api/trunks.rb, line 19 def ip(ip) set :ip, ip end
name(name)
click to toggle source
# File lib/portatext/command/api/trunks.rb, line 15 def name(name) set :name, name end