Skip to content

Commit

Permalink
Autoformat ruby sdk
Browse files Browse the repository at this point in the history
  • Loading branch information
ngarg-vail committed Dec 24, 2024
1 parent 7646e4a commit 3096b0c
Show file tree
Hide file tree
Showing 215 changed files with 6,469 additions and 6,693 deletions.
17 changes: 1 addition & 16 deletions .rubocop.yml
Original file line number Diff line number Diff line change
Expand Up @@ -40,9 +40,6 @@ Layout/EmptyLinesAroundMethodBody:
Layout/EmptyLinesAroundModuleBody:
Enabled: true

Layout/FirstArgumentIndentation:
Enabled: true

# Use Ruby >= 1.9 syntax for hashes. Prefer { a: :b } over { :a => :b }.
Style/HashSyntax:
Enabled: false
Expand All @@ -51,7 +48,7 @@ Style/HashSyntax:
# extra level of indentation.
Layout/IndentationConsistency:
Enabled: true
EnforcedStyle: indented_internal_methods
EnforcedStyle: normal

# Two spaces, no tabs (for indentation).
Layout/IndentationWidth:
Expand Down Expand Up @@ -112,22 +109,10 @@ Layout/SpaceInsideParens:
# Enabled: true
# EnforcedStyle: single_quotes

# Detect hard tabs, no hard tabs.
Layout/IndentationStyle:
Enabled: true

# Blank lines should not have any spaces.
Layout/TrailingEmptyLines:
Enabled: true

# No trailing whitespace.
Layout/TrailingWhitespace:
Enabled: false

# Use quotes for string literals when they are enough.
Style/RedundantPercentQ:
Enabled: true

# Align `end` with the matching keyword or starting expression except for
# assignments, where it should be aligned with the LHS.
Layout/EndAlignment:
Expand Down
2 changes: 1 addition & 1 deletion Gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -9,4 +9,4 @@ group :development, :test do
gem "webmock", "~> 3.14"
gem "factory_bot", "~> 6.2"
gem "facets", "~> 3.1"
end
end
2 changes: 1 addition & 1 deletion lib/freeclimb.rb
Original file line number Diff line number Diff line change
Expand Up @@ -160,7 +160,7 @@
# APIs
require 'freeclimb/api/default_api'

#Utils
# Utils
require 'freeclimb/utils/signature_information'
require 'freeclimb/utils/request_verifier'

Expand Down
34 changes: 17 additions & 17 deletions lib/freeclimb/api/default_api.rb
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ def buy_a_phone_number_with_http_info(buy_incoming_number_request, opts = {})
# HTTP header 'Content-Type'
content_type = @api_client.select_header_content_type(['application/json'])
if !content_type.nil?
header_params['Content-Type'] = content_type
header_params['Content-Type'] = content_type
end

# form parameters
Expand Down Expand Up @@ -121,7 +121,7 @@ def create_a_conference_with_http_info(opts = {})
# HTTP header 'Content-Type'
content_type = @api_client.select_header_content_type(['application/json'])
if !content_type.nil?
header_params['Content-Type'] = content_type
header_params['Content-Type'] = content_type
end

# form parameters
Expand Down Expand Up @@ -183,7 +183,7 @@ def create_a_queue_with_http_info(opts = {})
# HTTP header 'Content-Type'
content_type = @api_client.select_header_content_type(['application/json'])
if !content_type.nil?
header_params['Content-Type'] = content_type
header_params['Content-Type'] = content_type
end

# form parameters
Expand Down Expand Up @@ -245,7 +245,7 @@ def create_an_application_with_http_info(opts = {})
# HTTP header 'Content-Type'
content_type = @api_client.select_header_content_type(['application/json'])
if !content_type.nil?
header_params['Content-Type'] = content_type
header_params['Content-Type'] = content_type
end

# form parameters
Expand Down Expand Up @@ -314,7 +314,7 @@ def create_knowledge_base_completion_with_http_info(knowledge_base_id, opts = {}
# HTTP header 'Content-Type'
content_type = @api_client.select_header_content_type(['application/json'])
if !content_type.nil?
header_params['Content-Type'] = content_type
header_params['Content-Type'] = content_type
end

# form parameters
Expand Down Expand Up @@ -754,7 +754,7 @@ def filter_logs_with_http_info(filter_logs_request, opts = {})
# HTTP header 'Content-Type'
content_type = @api_client.select_header_content_type(['application/json'])
if !content_type.nil?
header_params['Content-Type'] = content_type
header_params['Content-Type'] = content_type
end

# form parameters
Expand Down Expand Up @@ -2959,7 +2959,7 @@ def make_a_call_with_http_info(opts = {})
# HTTP header 'Content-Type'
content_type = @api_client.select_header_content_type(['application/json'])
if !content_type.nil?
header_params['Content-Type'] = content_type
header_params['Content-Type'] = content_type
end

# form parameters
Expand Down Expand Up @@ -3026,7 +3026,7 @@ def make_a_webrtc_jwt_with_http_info(create_web_rtc_token, opts = {})
# HTTP header 'Content-Type'
content_type = @api_client.select_header_content_type(['application/json'])
if !content_type.nil?
header_params['Content-Type'] = content_type
header_params['Content-Type'] = content_type
end

# form parameters
Expand Down Expand Up @@ -3160,7 +3160,7 @@ def send_an_sms_message_with_http_info(message_request, opts = {})
# HTTP header 'Content-Type'
content_type = @api_client.select_header_content_type(['application/json'])
if !content_type.nil?
header_params['Content-Type'] = content_type
header_params['Content-Type'] = content_type
end

# form parameters
Expand Down Expand Up @@ -3289,7 +3289,7 @@ def update_a_conference_with_http_info(conference_id, opts = {})
# HTTP header 'Content-Type'
content_type = @api_client.select_header_content_type(['application/json'])
if !content_type.nil?
header_params['Content-Type'] = content_type
header_params['Content-Type'] = content_type
end

# form parameters
Expand Down Expand Up @@ -3361,7 +3361,7 @@ def update_a_live_call_with_http_info(call_id, update_call_request, opts = {})
# HTTP header 'Content-Type'
content_type = @api_client.select_header_content_type(['application/json'])
if !content_type.nil?
header_params['Content-Type'] = content_type
header_params['Content-Type'] = content_type
end

# form parameters
Expand Down Expand Up @@ -3437,7 +3437,7 @@ def update_a_participant_with_http_info(conference_id, call_id, opts = {})
# HTTP header 'Content-Type'
content_type = @api_client.select_header_content_type(['application/json'])
if !content_type.nil?
header_params['Content-Type'] = content_type
header_params['Content-Type'] = content_type
end

# form parameters
Expand Down Expand Up @@ -3506,7 +3506,7 @@ def update_a_queue_with_http_info(queue_id, opts = {})
# HTTP header 'Content-Type'
content_type = @api_client.select_header_content_type(['application/json'])
if !content_type.nil?
header_params['Content-Type'] = content_type
header_params['Content-Type'] = content_type
end

# form parameters
Expand Down Expand Up @@ -3566,7 +3566,7 @@ def update_an_account_with_http_info(opts = {})
# HTTP header 'Content-Type'
content_type = @api_client.select_header_content_type(['application/json'])
if !content_type.nil?
header_params['Content-Type'] = content_type
header_params['Content-Type'] = content_type
end

# form parameters
Expand Down Expand Up @@ -3635,7 +3635,7 @@ def update_an_application_with_http_info(application_id, opts = {})
# HTTP header 'Content-Type'
content_type = @api_client.select_header_content_type(['application/json'])
if !content_type.nil?
header_params['Content-Type'] = content_type
header_params['Content-Type'] = content_type
end

# form parameters
Expand Down Expand Up @@ -3704,7 +3704,7 @@ def update_an_incoming_number_with_http_info(phone_number_id, opts = {})
# HTTP header 'Content-Type'
content_type = @api_client.select_header_content_type(['application/json'])
if !content_type.nil?
header_params['Content-Type'] = content_type
header_params['Content-Type'] = content_type
end

# form parameters
Expand Down Expand Up @@ -3757,7 +3757,7 @@ def get_next_page_with_http_info(response, opts = {})
# HTTP header 'Content-Type'
content_type = @api_client.select_header_content_type(['application/json'])
if !content_type.nil?
header_params['Content-Type'] = content_type
header_params['Content-Type'] = content_type
end

# form parameters
Expand Down
1 change: 0 additions & 1 deletion lib/freeclimb/configuration.rb
Original file line number Diff line number Diff line change
Expand Up @@ -273,6 +273,5 @@ def server_url(index, variables = {}, servers = nil)

url
end

end
end
2 changes: 0 additions & 2 deletions lib/freeclimb/models/account_request.rb
Original file line number Diff line number Diff line change
Expand Up @@ -228,7 +228,5 @@ def _to_hash(value)
value
end
end

end

end
2 changes: 0 additions & 2 deletions lib/freeclimb/models/account_result.rb
Original file line number Diff line number Diff line change
Expand Up @@ -352,7 +352,5 @@ def _to_hash(value)
value
end
end

end

end
2 changes: 0 additions & 2 deletions lib/freeclimb/models/add_to_conference.rb
Original file line number Diff line number Diff line change
Expand Up @@ -325,7 +325,5 @@ def _to_hash(value)
value
end
end

end

end
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ def self.deserialize(payload)
data = JSON.parse("[#{payload}]")[0]
inverted_attributes = self.attribute_map.invert
hash = self.acceptable_attributes.uniq.map { |k| [inverted_attributes[k], data[k.to_s]] }.to_h
return AddToConferenceNotificationWebhook.new(hash)
AddToConferenceNotificationWebhook.new(hash)
end
# Context or reason why this request is being made. Will be addToConferenceNotification - A Call has been bridged to a conference and the addToConference command’s notificationUrl is being invoked.
attr_accessor :request_type
Expand Down Expand Up @@ -380,7 +380,5 @@ def _to_hash(value)
value
end
end

end

end
4 changes: 1 addition & 3 deletions lib/freeclimb/models/add_to_queue_notification_webhook.rb
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ def self.deserialize(payload)
data = JSON.parse("[#{payload}]")[0]
inverted_attributes = self.attribute_map.invert
hash = self.acceptable_attributes.uniq.map { |k| [inverted_attributes[k], data[k.to_s]] }.to_h
return AddToQueueNotificationWebhook.new(hash)
AddToQueueNotificationWebhook.new(hash)
end
# Context or reason why this request is being made. Will be addToQueueNotification - A call has been added to a queue and the Enqueue command’s notificationUrl is being invoked.
attr_accessor :request_type
Expand Down Expand Up @@ -340,7 +340,5 @@ def _to_hash(value)
value
end
end

end

end
2 changes: 0 additions & 2 deletions lib/freeclimb/models/application_list.rb
Original file line number Diff line number Diff line change
Expand Up @@ -304,7 +304,5 @@ def _to_hash(value)
value
end
end

end

end
2 changes: 0 additions & 2 deletions lib/freeclimb/models/application_request.rb
Original file line number Diff line number Diff line change
Expand Up @@ -284,7 +284,5 @@ def _to_hash(value)
value
end
end

end

end
2 changes: 0 additions & 2 deletions lib/freeclimb/models/application_result.rb
Original file line number Diff line number Diff line change
Expand Up @@ -354,7 +354,5 @@ def _to_hash(value)
value
end
end

end

end
2 changes: 0 additions & 2 deletions lib/freeclimb/models/available_number.rb
Original file line number Diff line number Diff line change
Expand Up @@ -283,7 +283,5 @@ def _to_hash(value)
value
end
end

end

end
2 changes: 0 additions & 2 deletions lib/freeclimb/models/available_number_list.rb
Original file line number Diff line number Diff line change
Expand Up @@ -304,7 +304,5 @@ def _to_hash(value)
value
end
end

end

end
2 changes: 0 additions & 2 deletions lib/freeclimb/models/buy_incoming_number_request.rb
Original file line number Diff line number Diff line change
Expand Up @@ -242,7 +242,5 @@ def _to_hash(value)
value
end
end

end

end
4 changes: 1 addition & 3 deletions lib/freeclimb/models/call_control_webhook.rb
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ def self.deserialize(payload)
data = JSON.parse("[#{payload}]")[0]
inverted_attributes = self.attribute_map.invert
hash = self.acceptable_attributes.uniq.map { |k| [inverted_attributes[k], data[k.to_s]] }.to_h
return CallControlWebhook.new(hash)
CallControlWebhook.new(hash)
end
# Context or reason why this request is being made. Will be callControl.
attr_accessor :request_type
Expand Down Expand Up @@ -277,7 +277,5 @@ def _to_hash(value)
value
end
end

end

end
2 changes: 0 additions & 2 deletions lib/freeclimb/models/call_list.rb
Original file line number Diff line number Diff line change
Expand Up @@ -304,7 +304,5 @@ def _to_hash(value)
value
end
end

end

end
2 changes: 0 additions & 2 deletions lib/freeclimb/models/call_result.rb
Original file line number Diff line number Diff line change
Expand Up @@ -450,7 +450,5 @@ def _to_hash(value)
value
end
end

end

end
4 changes: 1 addition & 3 deletions lib/freeclimb/models/call_status_webhook.rb
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ def self.deserialize(payload)
data = JSON.parse("[#{payload}]")[0]
inverted_attributes = self.attribute_map.invert
hash = self.acceptable_attributes.uniq.map { |k| [inverted_attributes[k], data[k.to_s]] }.to_h
return CallStatusWebhook.new(hash)
CallStatusWebhook.new(hash)
end
# Context or reason why this request is being made. Will be callStatus - A Call has ended and the statusCallbackUrl is being invoked.
attr_accessor :request_type
Expand Down Expand Up @@ -350,7 +350,5 @@ def _to_hash(value)
value
end
end

end

end
2 changes: 0 additions & 2 deletions lib/freeclimb/models/capabilities.rb
Original file line number Diff line number Diff line change
Expand Up @@ -264,7 +264,5 @@ def _to_hash(value)
value
end
end

end

end
2 changes: 0 additions & 2 deletions lib/freeclimb/models/completion_request.rb
Original file line number Diff line number Diff line change
Expand Up @@ -240,7 +240,5 @@ def _to_hash(value)
value
end
end

end

end
2 changes: 0 additions & 2 deletions lib/freeclimb/models/completion_result.rb
Original file line number Diff line number Diff line change
Expand Up @@ -257,7 +257,5 @@ def _to_hash(value)
value
end
end

end

end
Loading

0 comments on commit 3096b0c

Please sign in to comment.