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

Version Path
twilio-ruby-4.13.0 lib/twilio-ruby/rest/call_feedback.rb
twilio-ruby-4.12.1 lib/twilio-ruby/rest/call_feedback.rb
twilio-ruby-4.11.1 lib/twilio-ruby/rest/call_feedback.rb
twilio-ruby-4.11.0 lib/twilio-ruby/rest/call_feedback.rb
twilio-ruby-4.10.0.edge lib/twilio-ruby/rest/call_feedback.rb
twilio-ruby-4.10.0 lib/twilio-ruby/rest/call_feedback.rb
twilio-ruby-4.9.1 lib/twilio-ruby/rest/call_feedback.rb
twilio-ruby-4.9.1.edge lib/twilio-ruby/rest/call_feedback.rb
twilio-ruby-4.9.0 lib/twilio-ruby/rest/call_feedback.rb
twilio-ruby-4.9.0.edge lib/twilio-ruby/rest/call_feedback.rb
twilio-ruby-4.8.0 lib/twilio-ruby/rest/call_feedback.rb
twilio-ruby-4.7.0 lib/twilio-ruby/rest/call_feedback.rb
twilio-ruby-4.8.3.edge lib/twilio-ruby/rest/call_feedback.rb
twilio-ruby-4.8.2.edge lib/twilio-ruby/rest/call_feedback.rb
twilio-ruby-4.8.1.edge lib/twilio-ruby/rest/call_feedback.rb
twilio-ruby-4.8.0.edge lib/twilio-ruby/rest/call_feedback.rb
twilio-ruby-4.6.2 lib/twilio-ruby/rest/call_feedback.rb
twilio-ruby-4.6.1 lib/twilio-ruby/rest/call_feedback.rb
twilio-ruby-4.6.0 lib/twilio-ruby/rest/call_feedback.rb
twilio-ruby-4.7.0.edge lib/twilio-ruby/rest/call_feedback.rb