lib/twilio-ruby/rest/api/v2010/account/transcription.rb in twilio-ruby-5.6.0 vs lib/twilio-ruby/rest/api/v2010/account/transcription.rb in twilio-ruby-5.6.1
- old
+ new
@@ -51,11 +51,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
##
@@ -63,11 +63,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
@@ -130,11 +130,11 @@
##
# Build an instance of TranscriptionInstance
# @param [Hash] payload Payload response from the API
# @return [TranscriptionInstance] TranscriptionInstance
def get_instance(payload)
- TranscriptionInstance.new(@version, payload, account_sid: @solution[:account_sid])
+ TranscriptionInstance.new(@version, payload, account_sid: @solution[:account_sid], )
end
##
# Provide a user friendly representation
def to_s
@@ -151,11 +151,11 @@
# @return [TranscriptionContext] TranscriptionContext
def initialize(version, account_sid, sid)
super(version)
# Path Solution
- @solution = {account_sid: account_sid, sid: sid}
+ @solution = {account_sid: account_sid, sid: sid, }
@uri = "/Accounts/#{@solution[:account_sid]}/Transcriptions/#{@solution[:sid]}.json"
end
##
# Fetch a TranscriptionInstance
@@ -221,19 +221,19 @@
'uri' => payload['uri'],
}
# Context
@instance_context = nil
- @params = {'account_sid' => account_sid, 'sid' => sid || @properties['sid']}
+ @params = {'account_sid' => account_sid, 'sid' => sid || @properties['sid'], }
end
##
# Generate an instance context for the instance, the context is capable of
# performing various actions. All instance actions are proxied to the context
# @return [TranscriptionContext] TranscriptionContext for this TranscriptionInstance
def context
unless @instance_context
- @instance_context = TranscriptionContext.new(@version, @params['account_sid'], @params['sid'])
+ @instance_context = TranscriptionContext.new(@version, @params['account_sid'], @params['sid'], )
end
@instance_context
end
##
\ No newline at end of file