lib/twilio-ruby/rest/ip_messaging/v1/service/channel/message.rb in twilio-ruby-5.4.4 vs lib/twilio-ruby/rest/ip_messaging/v1/service/channel/message.rb in twilio-ruby-5.4.5

- old
+ new

@@ -31,11 +31,11 @@ # @param [String] body The body # @param [String] from The from # @param [String] attributes The attributes # @return [MessageInstance] Newly created MessageInstance def create(body: nil, from: :unset, attributes: :unset) - data = Twilio::Values.of({'Body' => body, 'From' => from, 'Attributes' => attributes,}) + data = Twilio::Values.of({'Body' => body, 'From' => from, 'Attributes' => attributes}) payload = @version.create( 'POST', @uri, data: data @@ -78,11 +78,11 @@ # efficient page size, i.e. min(limit, 1000) # @return [Enumerable] Enumerable that will yield up to limit results def stream(order: :unset, limit: nil, page_size: nil) limits = @version.read_limits(limit, page_size) - page = self.page(order: order, page_size: limits[:page_size],) + page = self.page(order: order, page_size: limits[:page_size]) @version.stream(page, limit: limits[:limit], page_limit: limits[:page_limit]) end ## @@ -90,11 +90,11 @@ # This operation lazily loads records as efficiently as possible until the limit # is reached. def each limits = @version.read_limits - page = self.page(page_size: limits[:page_size],) + page = self.page(page_size: limits[:page_size]) @version.stream(page, limit: limits[:limit], page_limit: limits[:page_limit]).each {|x| yield x} end @@ -186,11 +186,11 @@ # @return [MessageContext] MessageContext def initialize(version, service_sid, channel_sid, sid) super(version) # Path Solution - @solution = {service_sid: service_sid, channel_sid: channel_sid, sid: sid,} + @solution = {service_sid: service_sid, channel_sid: channel_sid, sid: sid} @uri = "/Services/#{@solution[:service_sid]}/Channels/#{@solution[:channel_sid]}/Messages/#{@solution[:sid]}" end ## # Fetch a MessageInstance @@ -224,11 +224,11 @@ # Update the MessageInstance # @param [String] body The body # @param [String] attributes The attributes # @return [MessageInstance] Updated MessageInstance def update(body: :unset, attributes: :unset) - data = Twilio::Values.of({'Body' => body, 'Attributes' => attributes,}) + data = Twilio::Values.of({'Body' => body, 'Attributes' => attributes}) payload = @version.update( 'POST', @uri, data: data, @@ -401,10 +401,10 @@ # Update the MessageInstance # @param [String] body The body # @param [String] attributes The attributes # @return [MessageInstance] Updated MessageInstance def update(body: :unset, attributes: :unset) - context.update(body: body, attributes: attributes,) + context.update(body: body, attributes: attributes) end ## # Provide a user friendly representation def to_s \ No newline at end of file