lib/twilio-ruby/rest/chat/v2/service/channel/invite.rb in twilio-ruby-5.6.0 vs lib/twilio-ruby/rest/chat/v2/service/channel/invite.rb in twilio-ruby-5.6.1

- old
+ new

@@ -30,11 +30,11 @@ # Request is executed immediately. # @param [String] identity The identity # @param [String] role_sid The role_sid # @return [InviteInstance] Newly created InviteInstance 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,10 +185,10 @@ # @return [InviteContext] InviteContext 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]}/Invites/#{@solution[:sid]}" end ## # Fetch a InviteInstance \ No newline at end of file