class Restcomm::REST::Feedback
Public Instance Methods
create(params={})
click to toggle source
Creates a new Feedback
object.
# File lib/restcomm-ruby/rest/call_feedback.rb 19 def create(params={}) 20 raise "Can't create feedback without a REST Client" unless @client 21 response = @client.post @path, params 22 @instance_class.new @path, @client, response 23 end
get(params={}, full_path=false)
click to toggle source
Get this feedback object.
Overridden because GETS to /Feedback returns an instance, not a list.
# File lib/restcomm-ruby/rest/call_feedback.rb 10 def get(params={}, full_path=false) 11 raise "Can't fetch feedback without a REST Client" unless @client 12 response = @client.get @path, params, full_path 13 path = full_path ? @path.split('.')[0] : @path 14 @instance_class.new path, @client, response 15 end