freeclimb 5.0.0 → 5.2.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (310) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +21 -1
  3. data/Gemfile +4 -4
  4. data/Gemfile.lock +34 -15
  5. data/README.md +5 -4
  6. data/Rakefile +1 -1
  7. data/docs/CreateConferenceRequest.md +1 -1
  8. data/docs/DefaultApi.md +1 -1
  9. data/docs/MessageResult.md +7 -1
  10. data/docs/TFNCampaign.md +34 -0
  11. data/freeclimb.gemspec +21 -26
  12. data/lib/freeclimb/api/default_api.rb +878 -878
  13. data/lib/freeclimb/api_client.rb +78 -83
  14. data/lib/freeclimb/api_error.rb +17 -19
  15. data/lib/freeclimb/configuration.rb +28 -31
  16. data/lib/freeclimb/models/account_request.rb +36 -41
  17. data/lib/freeclimb/models/account_result.rb +88 -92
  18. data/lib/freeclimb/models/account_status.rb +12 -14
  19. data/lib/freeclimb/models/account_type.rb +12 -14
  20. data/lib/freeclimb/models/add_to_conference.rb +81 -85
  21. data/lib/freeclimb/models/add_to_conference_notification_webhook.rb +99 -103
  22. data/lib/freeclimb/models/add_to_queue_notification_webhook.rb +78 -82
  23. data/lib/freeclimb/models/answered_by.rb +12 -14
  24. data/lib/freeclimb/models/application_list.rb +74 -78
  25. data/lib/freeclimb/models/application_request.rb +66 -70
  26. data/lib/freeclimb/models/application_result.rb +100 -104
  27. data/lib/freeclimb/models/available_number.rb +66 -70
  28. data/lib/freeclimb/models/available_number_list.rb +74 -78
  29. data/lib/freeclimb/models/barge_in_reason.rb +12 -14
  30. data/lib/freeclimb/models/buy_incoming_number_request.rb +41 -45
  31. data/lib/freeclimb/models/call_control_webhook.rb +56 -61
  32. data/lib/freeclimb/models/call_direction.rb +12 -14
  33. data/lib/freeclimb/models/call_ended_reason.rb +12 -14
  34. data/lib/freeclimb/models/call_list.rb +74 -78
  35. data/lib/freeclimb/models/call_result.rb +142 -146
  36. data/lib/freeclimb/models/call_status.rb +12 -14
  37. data/lib/freeclimb/models/call_status_webhook.rb +84 -88
  38. data/lib/freeclimb/models/capabilities.rb +55 -59
  39. data/lib/freeclimb/models/completion_request.rb +32 -36
  40. data/lib/freeclimb/models/completion_result.rb +36 -40
  41. data/lib/freeclimb/models/completion_result_status.rb +12 -14
  42. data/lib/freeclimb/models/conference_list.rb +74 -78
  43. data/lib/freeclimb/models/conference_participant_list.rb +74 -78
  44. data/lib/freeclimb/models/conference_participant_result.rb +88 -92
  45. data/lib/freeclimb/models/conference_recording_status_webhook.rb +99 -103
  46. data/lib/freeclimb/models/conference_result.rb +106 -110
  47. data/lib/freeclimb/models/conference_status.rb +12 -14
  48. data/lib/freeclimb/models/conference_status_webhook.rb +102 -106
  49. data/lib/freeclimb/models/create_conference.rb +60 -63
  50. data/lib/freeclimb/models/create_conference_request.rb +55 -54
  51. data/lib/freeclimb/models/create_conference_webhook.rb +102 -106
  52. data/lib/freeclimb/models/create_web_rtc_token.rb +42 -46
  53. data/lib/freeclimb/models/dequeue.rb +30 -37
  54. data/lib/freeclimb/models/dequeue_webhook.rb +89 -93
  55. data/lib/freeclimb/models/enqueue.rb +48 -52
  56. data/lib/freeclimb/models/filter_logs_request.rb +31 -35
  57. data/lib/freeclimb/models/get_digits.rb +73 -77
  58. data/lib/freeclimb/models/get_digits_reason.rb +12 -14
  59. data/lib/freeclimb/models/get_digits_webhook.rb +93 -97
  60. data/lib/freeclimb/models/get_speech.rb +94 -97
  61. data/lib/freeclimb/models/get_speech_reason.rb +12 -14
  62. data/lib/freeclimb/models/get_speech_webhook.rb +118 -122
  63. data/lib/freeclimb/models/grammar_file_built_in.rb +12 -14
  64. data/lib/freeclimb/models/grammar_type.rb +12 -14
  65. data/lib/freeclimb/models/hangup.rb +34 -39
  66. data/lib/freeclimb/models/if_machine.rb +12 -14
  67. data/lib/freeclimb/models/inbound_call_webhook.rb +85 -89
  68. data/lib/freeclimb/models/incoming_number_list.rb +74 -78
  69. data/lib/freeclimb/models/incoming_number_request.rb +41 -45
  70. data/lib/freeclimb/models/incoming_number_result.rb +122 -126
  71. data/lib/freeclimb/models/language.rb +12 -14
  72. data/lib/freeclimb/models/leave_conference_webhook.rb +79 -83
  73. data/lib/freeclimb/models/log_level.rb +12 -14
  74. data/lib/freeclimb/models/log_list.rb +74 -78
  75. data/lib/freeclimb/models/log_result.rb +67 -71
  76. data/lib/freeclimb/models/machine_detected_webhook.rb +89 -93
  77. data/lib/freeclimb/models/machine_type.rb +12 -14
  78. data/lib/freeclimb/models/make_call_request.rb +77 -81
  79. data/lib/freeclimb/models/message_delivery_webhook.rb +81 -86
  80. data/lib/freeclimb/models/message_direction.rb +12 -14
  81. data/lib/freeclimb/models/message_request.rb +72 -75
  82. data/lib/freeclimb/models/message_result.rb +150 -123
  83. data/lib/freeclimb/models/message_status.rb +12 -14
  84. data/lib/freeclimb/models/message_status_webhook.rb +86 -90
  85. data/lib/freeclimb/models/messages_list.rb +74 -78
  86. data/lib/freeclimb/models/mutable_resource_model.rb +46 -51
  87. data/lib/freeclimb/models/out_dial.rb +80 -84
  88. data/lib/freeclimb/models/out_dial_api_connect_webhook.rb +84 -88
  89. data/lib/freeclimb/models/out_dial_connect_webhook.rb +84 -88
  90. data/lib/freeclimb/models/out_dial_start_webhook.rb +90 -94
  91. data/lib/freeclimb/models/pagination_model.rb +67 -71
  92. data/lib/freeclimb/models/park.rb +44 -48
  93. data/lib/freeclimb/models/pause.rb +33 -37
  94. data/lib/freeclimb/models/percl_command.rb +36 -40
  95. data/lib/freeclimb/models/percl_script.rb +32 -36
  96. data/lib/freeclimb/models/play.rb +44 -48
  97. data/lib/freeclimb/models/play_beep.rb +12 -14
  98. data/lib/freeclimb/models/play_early_media.rb +33 -37
  99. data/lib/freeclimb/models/queue_list.rb +74 -78
  100. data/lib/freeclimb/models/queue_member.rb +55 -59
  101. data/lib/freeclimb/models/queue_member_list.rb +74 -78
  102. data/lib/freeclimb/models/queue_request.rb +37 -42
  103. data/lib/freeclimb/models/queue_result.rb +88 -92
  104. data/lib/freeclimb/models/queue_result_status.rb +12 -14
  105. data/lib/freeclimb/models/queue_wait_webhook.rb +94 -98
  106. data/lib/freeclimb/models/record_utterance.rb +63 -67
  107. data/lib/freeclimb/models/record_utterance_term_reason.rb +12 -14
  108. data/lib/freeclimb/models/record_webhook.rb +119 -123
  109. data/lib/freeclimb/models/recording_list.rb +74 -78
  110. data/lib/freeclimb/models/recording_result.rb +76 -80
  111. data/lib/freeclimb/models/redirect.rb +33 -37
  112. data/lib/freeclimb/models/redirect_webhook.rb +84 -88
  113. data/lib/freeclimb/models/reject.rb +34 -39
  114. data/lib/freeclimb/models/remove_from_conference.rb +30 -37
  115. data/lib/freeclimb/models/remove_from_queue_notification_webhook.rb +89 -93
  116. data/lib/freeclimb/models/request_type.rb +12 -14
  117. data/lib/freeclimb/models/say.rb +49 -53
  118. data/lib/freeclimb/models/send_digits.rb +43 -47
  119. data/lib/freeclimb/models/set_dtmf_pass_through.rb +34 -39
  120. data/lib/freeclimb/models/set_listen.rb +34 -39
  121. data/lib/freeclimb/models/set_talk.rb +34 -39
  122. data/lib/freeclimb/models/sms.rb +48 -52
  123. data/lib/freeclimb/models/sms_ten_dlc_brand.rb +187 -190
  124. data/lib/freeclimb/models/sms_ten_dlc_brand_alt_business_id_type.rb +12 -14
  125. data/lib/freeclimb/models/sms_ten_dlc_brand_entity_type.rb +12 -14
  126. data/lib/freeclimb/models/sms_ten_dlc_brand_identity_status.rb +12 -14
  127. data/lib/freeclimb/models/sms_ten_dlc_brand_relationship.rb +12 -14
  128. data/lib/freeclimb/models/sms_ten_dlc_brand_stock_exchange.rb +12 -14
  129. data/lib/freeclimb/models/sms_ten_dlc_brands_list_result.rb +74 -78
  130. data/lib/freeclimb/models/sms_ten_dlc_campaign.rb +226 -229
  131. data/lib/freeclimb/models/sms_ten_dlc_campaign_status.rb +12 -14
  132. data/lib/freeclimb/models/sms_ten_dlc_campaigns_list_result.rb +74 -78
  133. data/lib/freeclimb/models/sms_ten_dlc_partner_campaign.rb +186 -189
  134. data/lib/freeclimb/models/sms_ten_dlc_partner_campaign_brand.rb +84 -87
  135. data/lib/freeclimb/models/sms_ten_dlc_partner_campaign_status.rb +12 -14
  136. data/lib/freeclimb/models/sms_ten_dlc_partner_campaigns_list_result.rb +74 -78
  137. data/lib/freeclimb/models/sms_toll_free_campaign.rb +61 -64
  138. data/lib/freeclimb/models/sms_toll_free_campaign_registration_status.rb +12 -14
  139. data/lib/freeclimb/models/sms_toll_free_campaigns_list_result.rb +74 -78
  140. data/lib/freeclimb/models/start_record_call.rb +30 -37
  141. data/lib/freeclimb/models/terminate_conference.rb +30 -37
  142. data/lib/freeclimb/models/tfn.rb +31 -35
  143. data/lib/freeclimb/models/tfn_campaign.rb +367 -0
  144. data/lib/freeclimb/models/transcribe_reason.rb +12 -14
  145. data/lib/freeclimb/models/transcribe_term_reason.rb +12 -14
  146. data/lib/freeclimb/models/transcribe_utterance.rb +61 -65
  147. data/lib/freeclimb/models/transcribe_utterance_record.rb +43 -47
  148. data/lib/freeclimb/models/transcribe_webhook.rb +150 -154
  149. data/lib/freeclimb/models/unpark.rb +30 -37
  150. data/lib/freeclimb/models/update_call_request.rb +31 -35
  151. data/lib/freeclimb/models/update_call_request_status.rb +12 -14
  152. data/lib/freeclimb/models/update_conference_participant_request.rb +41 -46
  153. data/lib/freeclimb/models/update_conference_request.rb +41 -45
  154. data/lib/freeclimb/models/update_conference_request_status.rb +12 -14
  155. data/lib/freeclimb/models/webhook.rb +32 -37
  156. data/lib/freeclimb/utils/request_verifier.rb +14 -14
  157. data/lib/freeclimb/utils/signature_information.rb +8 -8
  158. data/lib/freeclimb/version.rb +10 -12
  159. data/lib/freeclimb.rb +156 -157
  160. data/openapi.json +96 -38
  161. data/package.json +1 -1
  162. data/spec/api/default_api_spec.rb +531 -793
  163. data/spec/api_client_spec.rb +100 -102
  164. data/spec/configuration_spec.rb +16 -18
  165. data/spec/models/account_request_spec.rb +106 -124
  166. data/spec/models/account_result_spec.rb +396 -453
  167. data/spec/models/account_status_spec.rb +28 -30
  168. data/spec/models/account_type_spec.rb +25 -27
  169. data/spec/models/add_to_conference_notification_webhook_spec.rb +465 -549
  170. data/spec/models/add_to_conference_spec.rb +355 -382
  171. data/spec/models/add_to_queue_notification_webhook_spec.rb +342 -402
  172. data/spec/models/answered_by_spec.rb +25 -27
  173. data/spec/models/application_list_spec.rb +290 -326
  174. data/spec/models/application_request_spec.rb +266 -289
  175. data/spec/models/application_result_spec.rb +445 -476
  176. data/spec/models/available_number_list_spec.rb +290 -326
  177. data/spec/models/available_number_spec.rb +279 -299
  178. data/spec/models/barge_in_reason_spec.rb +28 -30
  179. data/spec/models/buy_incoming_number_request_spec.rb +137 -156
  180. data/spec/models/call_control_webhook_spec.rb +204 -225
  181. data/spec/models/call_direction_spec.rb +28 -30
  182. data/spec/models/call_ended_reason_spec.rb +108 -110
  183. data/spec/models/call_list_spec.rb +290 -326
  184. data/spec/models/call_result_spec.rb +684 -772
  185. data/spec/models/call_status_spec.rb +48 -50
  186. data/spec/models/call_status_webhook_spec.rb +414 -492
  187. data/spec/models/capabilities_spec.rb +203 -223
  188. data/spec/models/completion_request_spec.rb +76 -92
  189. data/spec/models/completion_result_spec.rb +107 -143
  190. data/spec/models/completion_result_status_spec.rb +25 -27
  191. data/spec/models/conference_list_spec.rb +290 -326
  192. data/spec/models/conference_participant_list_spec.rb +290 -326
  193. data/spec/models/conference_participant_result_spec.rb +385 -414
  194. data/spec/models/conference_recording_status_webhook_spec.rb +465 -549
  195. data/spec/models/conference_result_spec.rb +492 -553
  196. data/spec/models/conference_status_spec.rb +32 -34
  197. data/spec/models/conference_status_webhook_spec.rb +465 -549
  198. data/spec/models/create_conference_request_spec.rb +205 -245
  199. data/spec/models/create_conference_spec.rb +237 -278
  200. data/spec/models/create_conference_webhook_spec.rb +465 -549
  201. data/spec/models/create_web_rtc_token_spec.rb +137 -159
  202. data/spec/models/dequeue_spec.rb +15 -17
  203. data/spec/models/dequeue_webhook_spec.rb +401 -465
  204. data/spec/models/enqueue_spec.rb +170 -190
  205. data/spec/models/filter_logs_request_spec.rb +74 -91
  206. data/spec/models/get_digits_reason_spec.rb +32 -34
  207. data/spec/models/get_digits_spec.rb +327 -361
  208. data/spec/models/get_digits_webhook_spec.rb +436 -517
  209. data/spec/models/get_speech_reason_spec.rb +40 -42
  210. data/spec/models/get_speech_spec.rb +400 -492
  211. data/spec/models/get_speech_webhook_spec.rb +608 -698
  212. data/spec/models/grammar_file_built_in_spec.rb +76 -78
  213. data/spec/models/grammar_type_spec.rb +25 -27
  214. data/spec/models/hangup_spec.rb +74 -91
  215. data/spec/models/if_machine_spec.rb +25 -27
  216. data/spec/models/inbound_call_webhook_spec.rb +372 -433
  217. data/spec/models/incoming_number_list_spec.rb +290 -326
  218. data/spec/models/incoming_number_request_spec.rb +137 -156
  219. data/spec/models/incoming_number_result_spec.rb +584 -613
  220. data/spec/models/language_spec.rb +121 -123
  221. data/spec/models/leave_conference_webhook_spec.rb +342 -402
  222. data/spec/models/log_level_spec.rb +28 -30
  223. data/spec/models/log_list_spec.rb +290 -326
  224. data/spec/models/log_result_spec.rb +275 -311
  225. data/spec/models/machine_detected_webhook_spec.rb +402 -482
  226. data/spec/models/machine_type_spec.rb +25 -27
  227. data/spec/models/make_call_request_spec.rb +354 -383
  228. data/spec/models/message_delivery_webhook_spec.rb +358 -384
  229. data/spec/models/message_direction_spec.rb +25 -27
  230. data/spec/models/message_request_spec.rb +325 -352
  231. data/spec/models/message_result_spec.rb +674 -598
  232. data/spec/models/message_status_spec.rb +61 -63
  233. data/spec/models/message_status_webhook_spec.rb +406 -451
  234. data/spec/models/messages_list_spec.rb +290 -326
  235. data/spec/models/mutable_resource_model_spec.rb +169 -191
  236. data/spec/models/out_dial_api_connect_webhook_spec.rb +372 -433
  237. data/spec/models/out_dial_connect_webhook_spec.rb +372 -433
  238. data/spec/models/out_dial_spec.rb +355 -401
  239. data/spec/models/out_dial_start_webhook_spec.rb +402 -464
  240. data/spec/models/pagination_model_spec.rb +260 -295
  241. data/spec/models/park_spec.rb +137 -156
  242. data/spec/models/pause_spec.rb +73 -92
  243. data/spec/models/percl_command_spec.rb +77 -94
  244. data/spec/models/percl_script_spec.rb +74 -91
  245. data/spec/models/play_beep_spec.rb +32 -34
  246. data/spec/models/play_early_media_spec.rb +74 -91
  247. data/spec/models/play_spec.rb +136 -157
  248. data/spec/models/queue_list_spec.rb +290 -326
  249. data/spec/models/queue_member_list_spec.rb +290 -326
  250. data/spec/models/queue_member_spec.rb +200 -225
  251. data/spec/models/queue_request_spec.rb +105 -125
  252. data/spec/models/queue_result_spec.rb +391 -419
  253. data/spec/models/queue_result_status_spec.rb +32 -34
  254. data/spec/models/queue_wait_webhook_spec.rb +430 -497
  255. data/spec/models/record_utterance_spec.rb +264 -291
  256. data/spec/models/record_utterance_term_reason_spec.rb +32 -34
  257. data/spec/models/record_webhook_spec.rb +605 -693
  258. data/spec/models/recording_list_spec.rb +290 -326
  259. data/spec/models/recording_result_spec.rb +324 -353
  260. data/spec/models/redirect_spec.rb +74 -91
  261. data/spec/models/redirect_webhook_spec.rb +372 -433
  262. data/spec/models/reject_spec.rb +74 -91
  263. data/spec/models/remove_from_conference_spec.rb +15 -17
  264. data/spec/models/remove_from_queue_notification_webhook_spec.rb +405 -487
  265. data/spec/models/request_type_spec.rb +108 -110
  266. data/spec/models/say_spec.rb +169 -191
  267. data/spec/models/send_digits_spec.rb +136 -157
  268. data/spec/models/set_dtmf_pass_through_spec.rb +75 -91
  269. data/spec/models/set_listen_spec.rb +75 -91
  270. data/spec/models/set_talk_spec.rb +75 -91
  271. data/spec/models/sms_spec.rb +170 -190
  272. data/spec/models/sms_ten_dlc_brand_alt_business_id_type_spec.rb +32 -34
  273. data/spec/models/sms_ten_dlc_brand_entity_type_spec.rb +36 -38
  274. data/spec/models/sms_ten_dlc_brand_identity_status_spec.rb +32 -34
  275. data/spec/models/sms_ten_dlc_brand_relationship_spec.rb +36 -38
  276. data/spec/models/sms_ten_dlc_brand_spec.rb +1083 -1201
  277. data/spec/models/sms_ten_dlc_brand_stock_exchange_spec.rb +125 -127
  278. data/spec/models/sms_ten_dlc_brands_list_result_spec.rb +290 -326
  279. data/spec/models/sms_ten_dlc_campaign_spec.rb +1140 -1208
  280. data/spec/models/sms_ten_dlc_campaign_status_spec.rb +25 -27
  281. data/spec/models/sms_ten_dlc_campaigns_list_result_spec.rb +290 -326
  282. data/spec/models/sms_ten_dlc_partner_campaign_brand_spec.rb +407 -425
  283. data/spec/models/sms_ten_dlc_partner_campaign_spec.rb +965 -1015
  284. data/spec/models/sms_ten_dlc_partner_campaign_status_spec.rb +25 -27
  285. data/spec/models/sms_ten_dlc_partner_campaigns_list_result_spec.rb +290 -326
  286. data/spec/models/sms_toll_free_campaign_registration_status_spec.rb +36 -38
  287. data/spec/models/sms_toll_free_campaign_spec.rb +271 -314
  288. data/spec/models/sms_toll_free_campaigns_list_result_spec.rb +290 -326
  289. data/spec/models/start_record_call_spec.rb +15 -17
  290. data/spec/models/terminate_conference_spec.rb +15 -17
  291. data/spec/models/tfn_campaign_spec.rb +561 -0
  292. data/spec/models/tfn_spec.rb +74 -91
  293. data/spec/models/transcribe_reason_spec.rb +36 -38
  294. data/spec/models/transcribe_term_reason_spec.rb +25 -27
  295. data/spec/models/transcribe_utterance_record_spec.rb +135 -158
  296. data/spec/models/transcribe_utterance_spec.rb +245 -265
  297. data/spec/models/transcribe_webhook_spec.rb +750 -874
  298. data/spec/models/unpark_spec.rb +15 -17
  299. data/spec/models/update_call_request_spec.rb +75 -109
  300. data/spec/models/update_call_request_status_spec.rb +25 -27
  301. data/spec/models/update_conference_participant_request_spec.rb +138 -156
  302. data/spec/models/update_conference_request_spec.rb +141 -195
  303. data/spec/models/update_conference_request_status_spec.rb +25 -27
  304. data/spec/models/webhook_spec.rb +69 -86
  305. data/spec/quickstart_spec.rb +5 -5
  306. data/spec/spec_helper.rb +92 -100
  307. data/spec/utils/request_verifier_spec.rb +70 -71
  308. data/spec/utils/signature_information_spec.rb +23 -23
  309. data/yarn.lock +9 -0
  310. metadata +9 -153
@@ -1,18 +1,17 @@
1
- =begin
2
- #FreeClimb API
1
+ # #FreeClimb API
2
+ #
3
+ # FreeClimb is a cloud-based application programming interface (API) that puts the power of the Vail platform in your hands. FreeClimb simplifies the process of creating applications that can use a full range of telephony features without requiring specialized or on-site telephony equipment. Using the FreeClimb REST API to write applications is easy! You have the option to use the language of your choice or hit the API directly. Your application can execute a command by issuing a RESTful request to the FreeClimb API. The base URL to send HTTP requests to the FreeClimb REST API is: /apiserver. FreeClimb authenticates and processes your request.
4
+ #
5
+ # The version of the OpenAPI document: 1.0.0
6
+ # Contact: support@freeclimb.com
7
+ # Generated by: https://openapi-generator.tech
8
+ # OpenAPI Generator version: 7.9.0
9
+ #
3
10
 
4
- #FreeClimb is a cloud-based application programming interface (API) that puts the power of the Vail platform in your hands. FreeClimb simplifies the process of creating applications that can use a full range of telephony features without requiring specialized or on-site telephony equipment. Using the FreeClimb REST API to write applications is easy! You have the option to use the language of your choice or hit the API directly. Your application can execute a command by issuing a RESTful request to the FreeClimb API. The base URL to send HTTP requests to the FreeClimb REST API is: /apiserver. FreeClimb authenticates and processes your request.
5
-
6
- The version of the OpenAPI document: 1.0.0
7
- Contact: support@freeclimb.com
8
- Generated by: https://openapi-generator.tech
9
- OpenAPI Generator version: 7.9.0
10
-
11
- =end
12
-
13
- require 'spec_helper'
14
- require 'json'
15
- require 'date'
11
+ require "spec_helper"
12
+ require "json"
13
+ require "date"
14
+ include Freeclimb
16
15
 
17
16
  # Unit tests for Freeclimb::ApplicationResult
18
17
  # Automatically generated by openapi-generator (https://openapi-generator.tech)
@@ -20,470 +19,448 @@ require 'date'
20
19
  describe Freeclimb::ApplicationResult do
21
20
  let(:instance) { Freeclimb::ApplicationResult.new }
22
21
 
23
- describe 'test an instance of ApplicationResult' do
24
- it 'should create an instance of ApplicationResult' do
22
+ describe "test an instance of ApplicationResult" do
23
+ it "should create an instance of ApplicationResult" do
25
24
  expect(instance).to be_instance_of(Freeclimb::ApplicationResult)
26
25
  end
27
26
  end
28
-
27
+
29
28
  describe 'test attribute "uri"' do
30
- it 'should work' do
29
+ it "should work" do
31
30
  instance.uri = "TEST_STRING"
32
- expect(instance.uri).to eq("TEST_STRING")
33
-
31
+ expect(instance.uri).to eq("TEST_STRING")
34
32
  end
35
33
  end
36
34
 
37
35
  describe 'test attribute "date_created"' do
38
- it 'should work' do
36
+ it "should work" do
39
37
  instance.date_created = "TEST_STRING"
40
- expect(instance.date_created).to eq("TEST_STRING")
41
-
38
+ expect(instance.date_created).to eq("TEST_STRING")
42
39
  end
43
40
  end
44
41
 
45
42
  describe 'test attribute "date_updated"' do
46
- it 'should work' do
43
+ it "should work" do
47
44
  instance.date_updated = "TEST_STRING"
48
- expect(instance.date_updated).to eq("TEST_STRING")
49
-
45
+ expect(instance.date_updated).to eq("TEST_STRING")
50
46
  end
51
47
  end
52
48
 
53
49
  describe 'test attribute "revision"' do
54
- it 'should work' do
55
-
56
-
50
+ it "should work" do
57
51
  instance.revision = 1
58
52
  expect(instance.revision).to eq(1)
59
-
60
53
  end
61
54
  end
62
55
 
63
56
  describe 'test attribute "account_id"' do
64
- it 'should work' do
57
+ it "should work" do
65
58
  instance.account_id = "TEST_STRING"
66
- expect(instance.account_id).to eq("TEST_STRING")
67
-
59
+ expect(instance.account_id).to eq("TEST_STRING")
68
60
  end
69
61
  end
70
62
 
71
63
  describe 'test attribute "application_id"' do
72
- it 'should work' do
64
+ it "should work" do
73
65
  instance.application_id = "TEST_STRING"
74
- expect(instance.application_id).to eq("TEST_STRING")
75
-
66
+ expect(instance.application_id).to eq("TEST_STRING")
76
67
  end
77
68
  end
78
69
 
79
70
  describe 'test attribute "_alias"' do
80
- it 'should work' do
71
+ it "should work" do
81
72
  instance._alias = "TEST_STRING"
82
- expect(instance._alias).to eq("TEST_STRING")
83
-
73
+ expect(instance._alias).to eq("TEST_STRING")
84
74
  end
85
75
  end
86
76
 
87
77
  describe 'test attribute "voice_url"' do
88
- it 'should work' do
78
+ it "should work" do
89
79
  instance.voice_url = "TEST_STRING"
90
- expect(instance.voice_url).to eq("TEST_STRING")
91
-
80
+ expect(instance.voice_url).to eq("TEST_STRING")
92
81
  end
93
82
  end
94
83
 
95
84
  describe 'test attribute "voice_fallback_url"' do
96
- it 'should work' do
85
+ it "should work" do
97
86
  instance.voice_fallback_url = "TEST_STRING"
98
- expect(instance.voice_fallback_url).to eq("TEST_STRING")
99
-
87
+ expect(instance.voice_fallback_url).to eq("TEST_STRING")
100
88
  end
101
89
  end
102
90
 
103
91
  describe 'test attribute "call_connect_url"' do
104
- it 'should work' do
92
+ it "should work" do
105
93
  instance.call_connect_url = "TEST_STRING"
106
- expect(instance.call_connect_url).to eq("TEST_STRING")
107
-
94
+ expect(instance.call_connect_url).to eq("TEST_STRING")
108
95
  end
109
96
  end
110
97
 
111
98
  describe 'test attribute "status_callback_url"' do
112
- it 'should work' do
99
+ it "should work" do
113
100
  instance.status_callback_url = "TEST_STRING"
114
- expect(instance.status_callback_url).to eq("TEST_STRING")
115
-
101
+ expect(instance.status_callback_url).to eq("TEST_STRING")
116
102
  end
117
103
  end
118
104
 
119
105
  describe 'test attribute "sms_url"' do
120
- it 'should work' do
106
+ it "should work" do
121
107
  instance.sms_url = "TEST_STRING"
122
- expect(instance.sms_url).to eq("TEST_STRING")
123
-
108
+ expect(instance.sms_url).to eq("TEST_STRING")
124
109
  end
125
110
  end
126
111
 
127
112
  describe 'test attribute "sms_fallback_url"' do
128
- it 'should work' do
113
+ it "should work" do
129
114
  instance.sms_fallback_url = "TEST_STRING"
130
- expect(instance.sms_fallback_url).to eq("TEST_STRING")
131
-
115
+ expect(instance.sms_fallback_url).to eq("TEST_STRING")
132
116
  end
133
117
  end
134
118
 
135
119
  describe 'test method "initialize"' do
136
- it 'properly initializes with values' do
137
- expect { instance = Freeclimb::ApplicationResult.new(
138
- uri: "TS",
139
-
140
- date_created: "TS",
141
-
142
- date_updated: "TS",
143
-
144
- revision: 1,
145
-
146
- account_id: "TS",
147
-
148
- application_id: "TS",
149
-
150
- _alias: "TS",
151
-
152
- voice_url: "TS",
153
-
154
- voice_fallback_url: "TS",
155
-
156
- call_connect_url: "TS",
157
-
158
- status_callback_url: "TS",
159
-
160
- sms_url: "TS",
161
-
162
- sms_fallback_url: "TS",
163
-
164
- )}.not_to raise_error()
165
- end
166
- it 'fails to initialize with input argument that is not a hash in Freeclimb::ApplicationResult' do
167
- expect { instance = Freeclimb::ApplicationResult.new(
168
- uri: "TS",
169
-
170
- date_created: "TS",
171
-
172
- date_updated: "TS",
173
-
174
- revision: 1,
175
-
176
- account_id: "TS",
177
-
178
- application_id: "TS",
179
-
180
- _alias: "TS",
181
-
182
- voice_url: "TS",
183
-
184
- voice_fallback_url: "TS",
185
-
186
- call_connect_url: "TS",
187
-
188
- status_callback_url: "TS",
189
-
190
- sms_url: "TS",
191
-
192
- sms_fallback_url: "TS",
193
-
194
- invalid_attribute: true
195
- )}.to raise_error(ArgumentError)
196
- end
197
- it 'fails to initialize with invalid attribute' do
198
- expect { instance = Freeclimb::ApplicationResult.new(
199
- uri: "TS",
200
-
201
- date_created: "TS",
202
-
203
- date_updated: "TS",
204
-
205
- revision: 1,
206
-
207
- account_id: "TS",
208
-
209
- application_id: "TS",
210
-
211
- _alias: "TS",
212
-
213
- voice_url: "TS",
214
-
215
- voice_fallback_url: "TS",
216
-
217
- call_connect_url: "TS",
218
-
219
- status_callback_url: "TS",
220
-
221
- sms_url: "TS",
222
-
223
- sms_fallback_url: "TS",
224
-
225
- invalid_attribute: true
226
- )}.to raise_error(ArgumentError)
227
- end
228
- end
229
-
230
- describe 'test method "valid"' do
231
- it 'checks if properties are valid' do
232
- instance = Freeclimb::ApplicationResult.new(
120
+ it "properly initializes with values" do
121
+ expect {
122
+ Freeclimb::ApplicationResult.new(
233
123
  uri: "TS",
234
-
124
+
235
125
  date_created: "TS",
236
-
126
+
237
127
  date_updated: "TS",
238
-
128
+
239
129
  revision: 1,
240
-
130
+
241
131
  account_id: "TS",
242
-
132
+
243
133
  application_id: "TS",
244
-
134
+
245
135
  _alias: "TS",
246
-
136
+
247
137
  voice_url: "TS",
248
-
138
+
249
139
  voice_fallback_url: "TS",
250
-
140
+
251
141
  call_connect_url: "TS",
252
-
142
+
253
143
  status_callback_url: "TS",
254
-
255
- sms_url: "TS",
256
-
257
- sms_fallback_url: "TS",
258
-
259
- )
260
- expect(instance.valid?).to eq(true)
261
- end
262
144
 
145
+ sms_url: "TS",
263
146
 
264
- skip 'checks if properties are invalid' do
265
- instance = Freeclimb::ApplicationResult.new(
266
-
267
- )
268
- expect(instance.valid?).to eq(false)
147
+ sms_fallback_url: "TS"
148
+ )
149
+ }.not_to raise_error
269
150
  end
270
-
271
- end
272
-
273
- describe 'test method "eql?"' do
274
- it 'checks if objects are equal' do
275
- obj = Object.new()
276
- instance_1 = Freeclimb::ApplicationResult.new(
151
+ it "fails to initialize with input argument that is not a hash in Freeclimb::ApplicationResult" do
152
+ expect {
153
+ Freeclimb::ApplicationResult.new(
277
154
  uri: "TS",
278
-
155
+
279
156
  date_created: "TS",
280
-
157
+
281
158
  date_updated: "TS",
282
-
159
+
283
160
  revision: 1,
284
-
161
+
285
162
  account_id: "TS",
286
-
163
+
287
164
  application_id: "TS",
288
-
165
+
289
166
  _alias: "TS",
290
-
167
+
291
168
  voice_url: "TS",
292
-
169
+
293
170
  voice_fallback_url: "TS",
294
-
171
+
295
172
  call_connect_url: "TS",
296
-
173
+
297
174
  status_callback_url: "TS",
298
-
175
+
299
176
  sms_url: "TS",
300
-
177
+
301
178
  sms_fallback_url: "TS",
302
-
303
- )
304
- instance_2 = Freeclimb::ApplicationResult.new(
179
+
180
+ invalid_attribute: true
181
+ )
182
+ }.to raise_error(ArgumentError)
183
+ end
184
+ it "fails to initialize with invalid attribute" do
185
+ expect {
186
+ Freeclimb::ApplicationResult.new(
305
187
  uri: "TS",
306
-
188
+
307
189
  date_created: "TS",
308
-
190
+
309
191
  date_updated: "TS",
310
-
192
+
311
193
  revision: 1,
312
-
194
+
313
195
  account_id: "TS",
314
-
196
+
315
197
  application_id: "TS",
316
-
198
+
317
199
  _alias: "TS",
318
-
200
+
319
201
  voice_url: "TS",
320
-
202
+
321
203
  voice_fallback_url: "TS",
322
-
204
+
323
205
  call_connect_url: "TS",
324
-
206
+
325
207
  status_callback_url: "TS",
326
-
208
+
327
209
  sms_url: "TS",
328
-
210
+
329
211
  sms_fallback_url: "TS",
330
-
212
+
213
+ invalid_attribute: true
214
+ )
215
+ }.to raise_error(ArgumentError)
216
+ end
217
+ end
218
+
219
+ describe 'test method "valid"' do
220
+ it "checks if properties are valid" do
221
+ instance = Freeclimb::ApplicationResult.new(
222
+ uri: "TS",
223
+
224
+ date_created: "TS",
225
+
226
+ date_updated: "TS",
227
+
228
+ revision: 1,
229
+
230
+ account_id: "TS",
231
+
232
+ application_id: "TS",
233
+
234
+ _alias: "TS",
235
+
236
+ voice_url: "TS",
237
+
238
+ voice_fallback_url: "TS",
239
+
240
+ call_connect_url: "TS",
241
+
242
+ status_callback_url: "TS",
243
+
244
+ sms_url: "TS",
245
+
246
+ sms_fallback_url: "TS"
247
+ )
248
+ expect(instance.valid?).to eq(true)
249
+ end
250
+
251
+ skip "checks if properties are invalid" do
252
+ instance = Freeclimb::ApplicationResult.new
253
+
254
+ expect(instance.valid?).to eq(false)
255
+ end
256
+ end
257
+
258
+ describe 'test method "eql?"' do
259
+ it "checks if objects are equal" do
260
+ instance_1 = Freeclimb::ApplicationResult.new(
261
+ uri: "TS",
262
+
263
+ date_created: "TS",
264
+
265
+ date_updated: "TS",
266
+
267
+ revision: 1,
268
+
269
+ account_id: "TS",
270
+
271
+ application_id: "TS",
272
+
273
+ _alias: "TS",
274
+
275
+ voice_url: "TS",
276
+
277
+ voice_fallback_url: "TS",
278
+
279
+ call_connect_url: "TS",
280
+
281
+ status_callback_url: "TS",
282
+
283
+ sms_url: "TS",
284
+
285
+ sms_fallback_url: "TS"
286
+ )
287
+ instance_2 = Freeclimb::ApplicationResult.new(
288
+ uri: "TS",
289
+
290
+ date_created: "TS",
291
+
292
+ date_updated: "TS",
293
+
294
+ revision: 1,
295
+
296
+ account_id: "TS",
297
+
298
+ application_id: "TS",
299
+
300
+ _alias: "TS",
301
+
302
+ voice_url: "TS",
303
+
304
+ voice_fallback_url: "TS",
305
+
306
+ call_connect_url: "TS",
307
+
308
+ status_callback_url: "TS",
309
+
310
+ sms_url: "TS",
311
+
312
+ sms_fallback_url: "TS"
331
313
  )
332
314
  expect(instance_1.eql?(instance_2)).to eq(true)
333
315
  end
334
-
335
- it 'checks if objects are not equal' do
316
+
317
+ it "checks if objects are not equal" do
336
318
  instance_1 = Freeclimb::ApplicationResult.new(
337
- uri: "TS",
338
-
339
- date_created: "TS",
340
-
341
- date_updated: "TS",
342
-
343
- revision: 2,
344
-
345
- account_id: "TS",
346
-
347
- application_id: "TS",
348
-
349
- _alias: "TS",
350
-
351
- voice_url: "TS",
352
-
353
- voice_fallback_url: "TS",
354
-
355
- call_connect_url: "TS",
356
-
357
- status_callback_url: "TS",
358
-
359
- sms_url: "TS",
360
-
361
- sms_fallback_url: "TS",
362
-
319
+ uri: "TS",
320
+
321
+ date_created: "TS",
322
+
323
+ date_updated: "TS",
324
+
325
+ revision: 2,
326
+
327
+ account_id: "TS",
328
+
329
+ application_id: "TS",
330
+
331
+ _alias: "TS",
332
+
333
+ voice_url: "TS",
334
+
335
+ voice_fallback_url: "TS",
336
+
337
+ call_connect_url: "TS",
338
+
339
+ status_callback_url: "TS",
340
+
341
+ sms_url: "TS",
342
+
343
+ sms_fallback_url: "TS"
363
344
  )
364
345
  instance_2 = Freeclimb::ApplicationResult.new(
365
- uri: "ST",
366
-
367
- date_created: "ST",
368
-
369
- date_updated: "ST",
370
-
371
- revision: 1,
372
-
373
- account_id: "ST",
374
-
375
- application_id: "ST",
376
-
377
- _alias: "ST",
378
-
379
- voice_url: "ST",
380
-
381
- voice_fallback_url: "ST",
382
-
383
- call_connect_url: "ST",
384
-
385
- status_callback_url: "ST",
386
-
387
- sms_url: "ST",
388
-
389
- sms_fallback_url: "ST",
390
-
346
+ uri: "ST",
347
+
348
+ date_created: "ST",
349
+
350
+ date_updated: "ST",
351
+
352
+ revision: 1,
353
+
354
+ account_id: "ST",
355
+
356
+ application_id: "ST",
357
+
358
+ _alias: "ST",
359
+
360
+ voice_url: "ST",
361
+
362
+ voice_fallback_url: "ST",
363
+
364
+ call_connect_url: "ST",
365
+
366
+ status_callback_url: "ST",
367
+
368
+ sms_url: "ST",
369
+
370
+ sms_fallback_url: "ST"
391
371
  )
392
372
  expect(instance_1.eql?(instance_2)).to eq(false)
393
373
  end
394
374
  end
395
-
375
+
396
376
  describe 'test method "hash"' do
397
- it 'calculates hash code' do
377
+ it "calculates hash code" do
398
378
  instance = Freeclimb::ApplicationResult.new(
399
- uri: "TS",
400
-
401
- date_created: "TS",
402
-
403
- date_updated: "TS",
404
-
405
- revision: 1,
406
-
407
- account_id: "TS",
408
-
409
- application_id: "TS",
410
-
411
- _alias: "TS",
412
-
413
- voice_url: "TS",
414
-
415
- voice_fallback_url: "TS",
416
-
417
- call_connect_url: "TS",
418
-
419
- status_callback_url: "TS",
420
-
421
- sms_url: "TS",
422
-
423
- sms_fallback_url: "TS",
424
-
425
- )
379
+ uri: "TS",
380
+
381
+ date_created: "TS",
382
+
383
+ date_updated: "TS",
384
+
385
+ revision: 1,
386
+
387
+ account_id: "TS",
388
+
389
+ application_id: "TS",
390
+
391
+ _alias: "TS",
392
+
393
+ voice_url: "TS",
394
+
395
+ voice_fallback_url: "TS",
396
+
397
+ call_connect_url: "TS",
398
+
399
+ status_callback_url: "TS",
400
+
401
+ sms_url: "TS",
402
+
403
+ sms_fallback_url: "TS"
404
+ )
426
405
  expect(instance.hash).to be_a_kind_of(Integer)
427
406
  end
428
407
  end
429
408
 
430
409
  describe 'test method "build_from_hash"' do
431
- it 'builds equivalent model from hash code' do
410
+ it "builds equivalent model from hash code" do
432
411
  instance_1 = Freeclimb::ApplicationResult.new(
433
412
  uri: "TS",
434
-
413
+
435
414
  date_created: "TS",
436
-
415
+
437
416
  date_updated: "TS",
438
-
417
+
439
418
  revision: 1,
440
-
419
+
441
420
  account_id: "TS",
442
-
421
+
443
422
  application_id: "TS",
444
-
423
+
445
424
  _alias: "TS",
446
-
425
+
447
426
  voice_url: "TS",
448
-
427
+
449
428
  voice_fallback_url: "TS",
450
-
429
+
451
430
  call_connect_url: "TS",
452
-
431
+
453
432
  status_callback_url: "TS",
454
-
433
+
455
434
  sms_url: "TS",
456
-
457
- sms_fallback_url: "TS",
458
-
435
+
436
+ sms_fallback_url: "TS"
459
437
  )
460
438
  instance_2 = Freeclimb::ApplicationResult.new(
461
439
  uri: "TS",
462
-
440
+
463
441
  date_created: "TS",
464
-
442
+
465
443
  date_updated: "TS",
466
-
444
+
467
445
  revision: 1,
468
-
446
+
469
447
  account_id: "TS",
470
-
448
+
471
449
  application_id: "TS",
472
-
450
+
473
451
  _alias: "TS",
474
-
452
+
475
453
  voice_url: "TS",
476
-
454
+
477
455
  voice_fallback_url: "TS",
478
-
456
+
479
457
  call_connect_url: "TS",
480
-
458
+
481
459
  status_callback_url: "TS",
482
-
460
+
483
461
  sms_url: "TS",
484
-
485
- sms_fallback_url: "TS",
486
-
462
+
463
+ sms_fallback_url: "TS"
487
464
  )
488
465
 
489
466
  expect(instance_2.build_from_hash(instance_1.hash)).to eq(instance_1.build_from_hash(instance_1.hash))
@@ -492,197 +469,203 @@ describe Freeclimb::ApplicationResult do
492
469
 
493
470
  describe 'test method "_deserialize"' do
494
471
  instance = Freeclimb::ApplicationResult.new(
495
- uri: "TS",
496
-
497
- date_created: "TS",
498
-
499
- date_updated: "TS",
500
-
501
- revision: 1,
502
-
503
- account_id: "TS",
504
-
505
- application_id: "TS",
506
-
507
- _alias: "TS",
508
-
509
- voice_url: "TS",
510
-
511
- voice_fallback_url: "TS",
512
-
513
- call_connect_url: "TS",
514
-
515
- status_callback_url: "TS",
516
-
517
- sms_url: "TS",
518
-
519
- sms_fallback_url: "TS",
520
-
472
+ uri: "TS",
473
+
474
+ date_created: "TS",
475
+
476
+ date_updated: "TS",
477
+
478
+ revision: 1,
479
+
480
+ account_id: "TS",
481
+
482
+ application_id: "TS",
483
+
484
+ _alias: "TS",
485
+
486
+ voice_url: "TS",
487
+
488
+ voice_fallback_url: "TS",
489
+
490
+ call_connect_url: "TS",
491
+
492
+ status_callback_url: "TS",
493
+
494
+ sms_url: "TS",
495
+
496
+ sms_fallback_url: "TS"
521
497
  )
522
- it 'deserializes the data of uri' do
498
+ it "deserializes the data of uri" do
523
499
  expect(instance._deserialize("String", instance.uri)).to be_a_kind_of(String)
524
500
  end
525
- it 'deserializes the data of date_created' do
501
+
502
+ it "deserializes the data of date_created" do
526
503
  expect(instance._deserialize("String", instance.date_created)).to be_a_kind_of(String)
527
504
  end
528
- it 'deserializes the data of date_updated' do
505
+
506
+ it "deserializes the data of date_updated" do
529
507
  expect(instance._deserialize("String", instance.date_updated)).to be_a_kind_of(String)
530
508
  end
531
- it 'deserializes the data of revision' do
509
+
510
+ it "deserializes the data of revision" do
532
511
  expect(instance._deserialize("Integer", instance.revision)).to be_a_kind_of(Integer)
533
512
  end
534
- it 'deserializes the data of account_id' do
513
+
514
+ it "deserializes the data of account_id" do
535
515
  expect(instance._deserialize("String", instance.account_id)).to be_a_kind_of(String)
536
516
  end
537
- it 'deserializes the data of application_id' do
517
+
518
+ it "deserializes the data of application_id" do
538
519
  expect(instance._deserialize("String", instance.application_id)).to be_a_kind_of(String)
539
520
  end
540
- it 'deserializes the data of _alias' do
521
+
522
+ it "deserializes the data of _alias" do
541
523
  expect(instance._deserialize("String", instance._alias)).to be_a_kind_of(String)
542
524
  end
543
- it 'deserializes the data of voice_url' do
525
+
526
+ it "deserializes the data of voice_url" do
544
527
  expect(instance._deserialize("String", instance.voice_url)).to be_a_kind_of(String)
545
528
  end
546
- it 'deserializes the data of voice_fallback_url' do
529
+
530
+ it "deserializes the data of voice_fallback_url" do
547
531
  expect(instance._deserialize("String", instance.voice_fallback_url)).to be_a_kind_of(String)
548
532
  end
549
- it 'deserializes the data of call_connect_url' do
533
+
534
+ it "deserializes the data of call_connect_url" do
550
535
  expect(instance._deserialize("String", instance.call_connect_url)).to be_a_kind_of(String)
551
536
  end
552
- it 'deserializes the data of status_callback_url' do
537
+
538
+ it "deserializes the data of status_callback_url" do
553
539
  expect(instance._deserialize("String", instance.status_callback_url)).to be_a_kind_of(String)
554
540
  end
555
- it 'deserializes the data of sms_url' do
541
+
542
+ it "deserializes the data of sms_url" do
556
543
  expect(instance._deserialize("String", instance.sms_url)).to be_a_kind_of(String)
557
544
  end
558
- it 'deserializes the data of sms_fallback_url' do
545
+
546
+ it "deserializes the data of sms_fallback_url" do
559
547
  expect(instance._deserialize("String", instance.sms_fallback_url)).to be_a_kind_of(String)
560
548
  end
561
549
  end
562
550
 
563
551
  describe 'test method "to_s"' do
564
- it 'returns the string representation of the object' do
552
+ it "returns the string representation of the object" do
565
553
  instance = Freeclimb::ApplicationResult.new(
566
554
  uri: "TS",
567
-
555
+
568
556
  date_created: "TS",
569
-
557
+
570
558
  date_updated: "TS",
571
-
559
+
572
560
  revision: 1,
573
-
561
+
574
562
  account_id: "TS",
575
-
563
+
576
564
  application_id: "TS",
577
-
565
+
578
566
  _alias: "TS",
579
-
567
+
580
568
  voice_url: "TS",
581
-
569
+
582
570
  voice_fallback_url: "TS",
583
-
571
+
584
572
  call_connect_url: "TS",
585
-
573
+
586
574
  status_callback_url: "TS",
587
-
575
+
588
576
  sms_url: "TS",
589
-
590
- sms_fallback_url: "TS",
591
-
577
+
578
+ sms_fallback_url: "TS"
592
579
  )
593
580
  expect(instance.to_s).to eq(instance.to_hash.to_s)
594
581
  end
595
582
  end
596
583
 
597
584
  describe 'test method "to_hash"' do
598
- it 'returns the object in the form of hash' do
585
+ it "returns the object in the form of hash" do
599
586
  instance = Freeclimb::ApplicationResult.new(
600
587
  uri: "TS",
601
-
588
+
602
589
  date_created: "TS",
603
-
590
+
604
591
  date_updated: "TS",
605
-
592
+
606
593
  revision: 1,
607
-
594
+
608
595
  account_id: "TS",
609
-
596
+
610
597
  application_id: "TS",
611
-
598
+
612
599
  _alias: "TS",
613
-
600
+
614
601
  voice_url: "TS",
615
-
602
+
616
603
  voice_fallback_url: "TS",
617
-
604
+
618
605
  call_connect_url: "TS",
619
-
606
+
620
607
  status_callback_url: "TS",
621
-
608
+
622
609
  sms_url: "TS",
623
-
624
- sms_fallback_url: "TS",
625
-
610
+
611
+ sms_fallback_url: "TS"
626
612
  )
627
613
  expect(instance.to_hash).to be_a_kind_of(Hash)
628
614
  end
629
- it 'creates equal hash for two equal objects' do
630
- obj = Object.new()
615
+ it "creates equal hash for two equal objects" do
631
616
  instance_1 = Freeclimb::ApplicationResult.new(
632
617
  uri: "TS",
633
-
618
+
634
619
  date_created: "TS",
635
-
620
+
636
621
  date_updated: "TS",
637
-
622
+
638
623
  revision: 1,
639
-
624
+
640
625
  account_id: "TS",
641
-
626
+
642
627
  application_id: "TS",
643
-
628
+
644
629
  _alias: "TS",
645
-
630
+
646
631
  voice_url: "TS",
647
-
632
+
648
633
  voice_fallback_url: "TS",
649
-
634
+
650
635
  call_connect_url: "TS",
651
-
636
+
652
637
  status_callback_url: "TS",
653
-
638
+
654
639
  sms_url: "TS",
655
-
656
- sms_fallback_url: "TS",
657
-
640
+
641
+ sms_fallback_url: "TS"
658
642
  )
659
643
  instance_2 = Freeclimb::ApplicationResult.new(
660
644
  uri: "TS",
661
-
645
+
662
646
  date_created: "TS",
663
-
647
+
664
648
  date_updated: "TS",
665
-
649
+
666
650
  revision: 1,
667
-
651
+
668
652
  account_id: "TS",
669
-
653
+
670
654
  application_id: "TS",
671
-
655
+
672
656
  _alias: "TS",
673
-
657
+
674
658
  voice_url: "TS",
675
-
659
+
676
660
  voice_fallback_url: "TS",
677
-
661
+
678
662
  call_connect_url: "TS",
679
-
663
+
680
664
  status_callback_url: "TS",
681
-
665
+
682
666
  sms_url: "TS",
683
-
684
- sms_fallback_url: "TS",
685
-
667
+
668
+ sms_fallback_url: "TS"
686
669
  )
687
670
  expect(instance_1.to_hash).to eq(instance_2.to_hash)
688
671
  end
@@ -690,84 +673,70 @@ describe Freeclimb::ApplicationResult do
690
673
 
691
674
  describe 'test method "_to_hash"' do
692
675
  instance = Freeclimb::ApplicationResult.new(
693
- uri: "TS",
694
-
695
-
696
- date_created: "TS",
697
-
698
-
699
- date_updated: "TS",
700
-
701
-
702
- revision: 1,
703
-
704
-
705
- account_id: "TS",
706
-
707
-
708
- application_id: "TS",
709
-
710
-
711
- _alias: "TS",
712
-
713
-
714
- voice_url: "TS",
715
-
716
-
717
- voice_fallback_url: "TS",
718
-
719
-
720
- call_connect_url: "TS",
721
-
722
-
723
- status_callback_url: "TS",
724
-
725
-
726
- sms_url: "TS",
727
-
728
-
729
- sms_fallback_url: "TS",
730
-
731
- )
732
- it 'returns uri in the form of hash' do
676
+ uri: "TS",
677
+
678
+ date_created: "TS",
679
+
680
+ date_updated: "TS",
681
+
682
+ revision: 1,
683
+
684
+ account_id: "TS",
685
+
686
+ application_id: "TS",
687
+
688
+ _alias: "TS",
689
+
690
+ voice_url: "TS",
691
+
692
+ voice_fallback_url: "TS",
693
+
694
+ call_connect_url: "TS",
695
+
696
+ status_callback_url: "TS",
697
+
698
+ sms_url: "TS",
699
+
700
+ sms_fallback_url: "TS"
701
+ )
702
+ it "returns uri in the form of hash" do
733
703
  expect(instance._to_hash(instance.uri)).to eq(instance.uri)
734
704
  end
735
- it 'returns date_created in the form of hash' do
705
+ it "returns date_created in the form of hash" do
736
706
  expect(instance._to_hash(instance.date_created)).to eq(instance.date_created)
737
707
  end
738
- it 'returns date_updated in the form of hash' do
708
+ it "returns date_updated in the form of hash" do
739
709
  expect(instance._to_hash(instance.date_updated)).to eq(instance.date_updated)
740
710
  end
741
- it 'returns revision in the form of hash' do
711
+ it "returns revision in the form of hash" do
742
712
  expect(instance._to_hash(instance.revision)).to eq(instance.revision)
743
713
  end
744
- it 'returns account_id in the form of hash' do
714
+ it "returns account_id in the form of hash" do
745
715
  expect(instance._to_hash(instance.account_id)).to eq(instance.account_id)
746
716
  end
747
- it 'returns application_id in the form of hash' do
717
+ it "returns application_id in the form of hash" do
748
718
  expect(instance._to_hash(instance.application_id)).to eq(instance.application_id)
749
719
  end
750
- it 'returns _alias in the form of hash' do
720
+ it "returns _alias in the form of hash" do
751
721
  expect(instance._to_hash(instance._alias)).to eq(instance._alias)
752
722
  end
753
- it 'returns voice_url in the form of hash' do
723
+ it "returns voice_url in the form of hash" do
754
724
  expect(instance._to_hash(instance.voice_url)).to eq(instance.voice_url)
755
725
  end
756
- it 'returns voice_fallback_url in the form of hash' do
726
+ it "returns voice_fallback_url in the form of hash" do
757
727
  expect(instance._to_hash(instance.voice_fallback_url)).to eq(instance.voice_fallback_url)
758
728
  end
759
- it 'returns call_connect_url in the form of hash' do
729
+ it "returns call_connect_url in the form of hash" do
760
730
  expect(instance._to_hash(instance.call_connect_url)).to eq(instance.call_connect_url)
761
731
  end
762
- it 'returns status_callback_url in the form of hash' do
732
+ it "returns status_callback_url in the form of hash" do
763
733
  expect(instance._to_hash(instance.status_callback_url)).to eq(instance.status_callback_url)
764
734
  end
765
- it 'returns sms_url in the form of hash' do
735
+ it "returns sms_url in the form of hash" do
766
736
  expect(instance._to_hash(instance.sms_url)).to eq(instance.sms_url)
767
737
  end
768
- it 'returns sms_fallback_url in the form of hash' do
738
+ it "returns sms_fallback_url in the form of hash" do
769
739
  expect(instance._to_hash(instance.sms_fallback_url)).to eq(instance.sms_fallback_url)
770
740
  end
771
741
  end
772
-
773
742
  end