Sha256: 1f32086296a0ed1822ec4ed0c0752efeba6b4128dc17a4dce3d55093bd4e8871
Contents?: true
Size: 821 Bytes
Versions: 45
Compression:
Stored size: 821 Bytes
Contents
module Twilio 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
45 entries across 45 versions & 1 rubygems