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.6.0.edge lib/twilio-ruby/rest/call_feedback.rb
twilio-ruby-4.5.0 lib/twilio-ruby/rest/call_feedback.rb
twilio-ruby-4.4.0 lib/twilio-ruby/rest/call_feedback.rb
twilio-ruby-4.3.0 lib/twilio-ruby/rest/call_feedback.rb
twilio-ruby-4.2.1 lib/twilio-ruby/rest/call_feedback.rb
twilio-ruby-4.2.0 lib/twilio-ruby/rest/call_feedback.rb
twilio-ruby-4.1.0 lib/twilio-ruby/rest/call_feedback.rb
twilio-ruby-4.0.1 lib/twilio-ruby/rest/call_feedback.rb
twilio-ruby-4.0.0 lib/twilio-ruby/rest/call_feedback.rb
twilio-ruby-3.16.1 lib/twilio-ruby/rest/call_feedback.rb
twilio-ruby-3.16.0 lib/twilio-ruby/rest/call_feedback.rb
twilio-ruby-3.15.2 lib/twilio-ruby/rest/call_feedback.rb
twilio-ruby-3.15.1 lib/twilio-ruby/rest/call_feedback.rb
twilio-ruby-3.15.0 lib/twilio-ruby/rest/call_feedback.rb
twilio-ruby-3.14.5 lib/twilio-ruby/rest/call_feedback.rb
twilio-ruby-3.14.4 lib/twilio-ruby/rest/call_feedback.rb
twilio-ruby-3.14.3 lib/twilio-ruby/rest/call_feedback.rb
twilio-ruby-3.14.2 lib/twilio-ruby/rest/call_feedback.rb
twilio-ruby-3.14.1 lib/twilio-ruby/rest/call_feedback.rb
twilio-ruby-3.14.0 lib/twilio-ruby/rest/call_feedback.rb