lib/twilio-ruby/rest/api/v2010/account/validation_request.rb in twilio-ruby-5.0.0.rc9 vs lib/twilio-ruby/rest/api/v2010/account/validation_request.rb in twilio-ruby-5.0.0.rc10

- old
+ new

@@ -12,11 +12,10 @@ class ValidationRequestList < ListResource ## # Initialize the ValidationRequestList # @param [Version] version Version that contains the resource # @param [String] account_sid The account_sid - # @return [ValidationRequestList] ValidationRequestList def initialize(version, account_sid: nil) super(version) # Path Solution @@ -33,11 +32,10 @@ # @param [String] friendly_name The friendly_name # @param [String] call_delay The call_delay # @param [String] extension The extension # @param [String] status_callback The status_callback # @param [String] status_callback_method The status_callback_method - # @return [ValidationRequestInstance] Newly created ValidationRequestInstance def create(phone_number: nil, friendly_name: nil, call_delay: nil, extension: nil, status_callback: nil, status_callback_method: nil) data = { 'PhoneNumber' => phone_number, 'FriendlyName' => friendly_name, @@ -54,11 +52,11 @@ ) return ValidationRequestInstance.new( @version, payload, - account_sid: @solution['account_sid'], + account_sid: @solution[:account_sid], ) end ## # Provide a user friendly representation @@ -72,11 +70,10 @@ # Initialize the ValidationRequestPage # @param [Version] version Version that contains the resource # @param [Response] response Response from the API # @param [Hash] solution Path solution for the resource # @param [String] account_sid The account_sid - # @return [ValidationRequestPage] ValidationRequestPage def initialize(version, response, solution) super(version, response) # Path Solution @@ -84,17 +81,16 @@ end ## # Build an instance of ValidationRequestInstance # @param [Hash] payload Payload response from the API - # @return [ValidationRequestInstance] ValidationRequestInstance def get_instance(payload) return ValidationRequestInstance.new( @version, payload, - account_sid: @solution['account_sid'], + account_sid: @solution[:account_sid], ) end ## # Provide a user friendly representation @@ -107,10 +103,9 @@ ## # Initialize the ValidationRequestInstance # @param [Version] version Version that contains the resource # @param [Hash] payload payload that contains response from Twilio # @param [String] account_sid The account_sid - # @return [ValidationRequestInstance] ValidationRequestInstance def initialize(version, payload, account_sid: nil) super(version) # Marshaled Properties \ No newline at end of file