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

- old
+ new

@@ -30,11 +30,11 @@ # Request is executed immediately. # @param [String] identity The identity # @param [String] role_sid The role_sid # @return [MemberInstance] Newly created MemberInstance def create(identity: nil, role_sid: :unset) - data = Twilio::Values.of({'Identity' => identity, 'RoleSid' => role_sid,}) + data = Twilio::Values.of({'Identity' => identity, 'RoleSid' => role_sid}) payload = @version.create( 'POST', @uri, data: data @@ -77,11 +77,11 @@ # efficient page size, i.e. min(limit, 1000) # @return [Enumerable] Enumerable that will yield up to limit results def stream(identity: :unset, limit: nil, page_size: nil) limits = @version.read_limits(limit, page_size) - page = self.page(identity: identity, page_size: limits[:page_size],) + page = self.page(identity: identity, page_size: limits[:page_size]) @version.stream(page, limit: limits[:limit], page_limit: limits[:page_limit]) end ## @@ -89,11 +89,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 @@ -185,11 +185,11 @@ # @return [MemberContext] MemberContext 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]}/Members/#{@solution[:sid]}" end ## # Fetch a MemberInstance @@ -389,10 +389,10 @@ # Update the MemberInstance # @param [String] role_sid The role_sid # @param [String] last_consumed_message_index The last_consumed_message_index # @return [MemberInstance] Updated MemberInstance def update(role_sid: :unset, last_consumed_message_index: :unset) - context.update(role_sid: role_sid, last_consumed_message_index: last_consumed_message_index,) + context.update(role_sid: role_sid, last_consumed_message_index: last_consumed_message_index) end ## # Provide a user friendly representation def to_s \ No newline at end of file