lib/twilio-ruby/rest/api/v2010/account/address.rb in twilio-ruby-5.4.4 vs lib/twilio-ruby/rest/api/v2010/account/address.rb in twilio-ruby-5.4.5
- old
+ new
@@ -53,11 +53,11 @@
'POST',
@uri,
data: data
)
- AddressInstance.new(@version, payload, account_sid: @solution[:account_sid],)
+ AddressInstance.new(@version, payload, account_sid: @solution[:account_sid])
end
##
# Lists AddressInstance records from the API as a list.
# Unlike stream(), this operation is eager and will load `limit` records into
@@ -114,11 +114,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
@@ -187,11 +187,11 @@
##
# Build an instance of AddressInstance
# @param [Hash] payload Payload response from the API
# @return [AddressInstance] AddressInstance
def get_instance(payload)
- AddressInstance.new(@version, payload, account_sid: @solution[:account_sid],)
+ AddressInstance.new(@version, payload, account_sid: @solution[:account_sid])
end
##
# Provide a user friendly representation
def to_s
@@ -208,11 +208,11 @@
# @return [AddressContext] AddressContext
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]}/Addresses/#{@solution[:sid]}.json"
# Dependents
@dependent_phone_numbers = nil
end
@@ -234,11 +234,11 @@
'GET',
@uri,
params,
)
- AddressInstance.new(@version, payload, account_sid: @solution[:account_sid], sid: @solution[:sid],)
+ AddressInstance.new(@version, payload, account_sid: @solution[:account_sid], sid: @solution[:sid])
end
##
# Update the AddressInstance
# @param [String] friendly_name The friendly_name
@@ -266,11 +266,11 @@
'POST',
@uri,
data: data,
)
- AddressInstance.new(@version, payload, account_sid: @solution[:account_sid], sid: @solution[:sid],)
+ AddressInstance.new(@version, payload, account_sid: @solution[:account_sid], sid: @solution[:sid])
end
##
# Access the dependent_phone_numbers
# @return [DependentPhoneNumberList]
@@ -324,19 +324,19 @@
'validated' => payload['validated'],
}
# 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 [AddressContext] AddressContext for this AddressInstance
def context
unless @instance_context
- @instance_context = AddressContext.new(@version, @params['account_sid'], @params['sid'],)
+ @instance_context = AddressContext.new(@version, @params['account_sid'], @params['sid'])
end
@instance_context
end
##
\ No newline at end of file