lib/twilio-ruby/rest/preview/proxy/service/session/participant/message_interaction.rb in twilio-ruby-5.6.0 vs lib/twilio-ruby/rest/preview/proxy/service/session/participant/message_interaction.rb in twilio-ruby-5.6.1
- old
+ new
@@ -36,11 +36,11 @@
# to 1600 characters long.
# @param [String] media_url The public url of an image or video to send to the
# Participant.
# @return [MessageInteractionInstance] Newly created MessageInteractionInstance
def create(body: :unset, media_url: :unset)
- data = Twilio::Values.of({'Body' => body, 'MediaUrl' => Twilio.serialize_list(media_url) { |e| e }})
+ data = Twilio::Values.of({'Body' => body, 'MediaUrl' => Twilio.serialize_list(media_url) { |e| e }, })
payload = @version.create(
'POST',
@uri,
data: data
@@ -82,11 +82,11 @@
# efficient page size, i.e. min(limit, 1000)
# @return [Enumerable] Enumerable that will yield up to limit results
def stream(limit: nil, page_size: nil)
limits = @version.read_limits(limit, page_size)
- 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])
end
##
@@ -94,10 +94,10 @@
# 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
\ No newline at end of file