Sha256: d51b91b7d7a8a26f7568b93f8126ef66372cea907a803c2e64ac1743a9b933ff
Contents?: true
Size: 823 Bytes
Versions: 2
Compression:
Stored size: 823 Bytes
Contents
module Restcomm module REST class Feedback < ListResource; ## # Get this feedback object. # # Overridden because GETS to /Feedback # returns an instance, not a list. def get(params={}, full_path=false) raise "Can't fetch feedback without a REST Client" unless @client response = @client.get @path, params, full_path path = full_path ? @path.split('.')[0] : @path @instance_class.new path, @client, response end ## # Creates a new Feedback object. def create(params={}) raise "Can't create feedback without a REST Client" unless @client response = @client.post @path, params @instance_class.new @path, @client, response end end class FeedbackInstance < InstanceResource; end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
restcomm-ruby-1.2.1 | lib/restcomm-ruby/rest/call_feedback.rb |
restcomm-ruby-1.2.0 | lib/restcomm-ruby/rest/call_feedback.rb |