freeclimb 5.1.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 (308) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +9 -0
  3. data/Gemfile +4 -5
  4. data/Gemfile.lock +18 -5
  5. data/README.md +4 -4
  6. data/Rakefile +1 -1
  7. data/docs/CreateConferenceRequest.md +1 -1
  8. data/docs/DefaultApi.md +1 -1
  9. data/freeclimb.gemspec +21 -26
  10. data/lib/freeclimb/api/default_api.rb +878 -878
  11. data/lib/freeclimb/api_client.rb +78 -83
  12. data/lib/freeclimb/api_error.rb +17 -19
  13. data/lib/freeclimb/configuration.rb +27 -29
  14. data/lib/freeclimb/models/account_request.rb +36 -41
  15. data/lib/freeclimb/models/account_result.rb +88 -92
  16. data/lib/freeclimb/models/account_status.rb +12 -14
  17. data/lib/freeclimb/models/account_type.rb +12 -14
  18. data/lib/freeclimb/models/add_to_conference.rb +81 -85
  19. data/lib/freeclimb/models/add_to_conference_notification_webhook.rb +99 -103
  20. data/lib/freeclimb/models/add_to_queue_notification_webhook.rb +78 -82
  21. data/lib/freeclimb/models/answered_by.rb +12 -14
  22. data/lib/freeclimb/models/application_list.rb +74 -78
  23. data/lib/freeclimb/models/application_request.rb +66 -70
  24. data/lib/freeclimb/models/application_result.rb +100 -104
  25. data/lib/freeclimb/models/available_number.rb +66 -70
  26. data/lib/freeclimb/models/available_number_list.rb +74 -78
  27. data/lib/freeclimb/models/barge_in_reason.rb +12 -14
  28. data/lib/freeclimb/models/buy_incoming_number_request.rb +41 -45
  29. data/lib/freeclimb/models/call_control_webhook.rb +56 -61
  30. data/lib/freeclimb/models/call_direction.rb +12 -14
  31. data/lib/freeclimb/models/call_ended_reason.rb +12 -14
  32. data/lib/freeclimb/models/call_list.rb +74 -78
  33. data/lib/freeclimb/models/call_result.rb +142 -146
  34. data/lib/freeclimb/models/call_status.rb +12 -14
  35. data/lib/freeclimb/models/call_status_webhook.rb +84 -88
  36. data/lib/freeclimb/models/capabilities.rb +55 -59
  37. data/lib/freeclimb/models/completion_request.rb +32 -36
  38. data/lib/freeclimb/models/completion_result.rb +36 -40
  39. data/lib/freeclimb/models/completion_result_status.rb +12 -14
  40. data/lib/freeclimb/models/conference_list.rb +74 -78
  41. data/lib/freeclimb/models/conference_participant_list.rb +74 -78
  42. data/lib/freeclimb/models/conference_participant_result.rb +88 -92
  43. data/lib/freeclimb/models/conference_recording_status_webhook.rb +99 -103
  44. data/lib/freeclimb/models/conference_result.rb +106 -110
  45. data/lib/freeclimb/models/conference_status.rb +12 -14
  46. data/lib/freeclimb/models/conference_status_webhook.rb +102 -106
  47. data/lib/freeclimb/models/create_conference.rb +60 -63
  48. data/lib/freeclimb/models/create_conference_request.rb +55 -54
  49. data/lib/freeclimb/models/create_conference_webhook.rb +102 -106
  50. data/lib/freeclimb/models/create_web_rtc_token.rb +42 -46
  51. data/lib/freeclimb/models/dequeue.rb +28 -33
  52. data/lib/freeclimb/models/dequeue_webhook.rb +89 -93
  53. data/lib/freeclimb/models/enqueue.rb +48 -52
  54. data/lib/freeclimb/models/filter_logs_request.rb +31 -35
  55. data/lib/freeclimb/models/get_digits.rb +73 -77
  56. data/lib/freeclimb/models/get_digits_reason.rb +12 -14
  57. data/lib/freeclimb/models/get_digits_webhook.rb +93 -97
  58. data/lib/freeclimb/models/get_speech.rb +94 -97
  59. data/lib/freeclimb/models/get_speech_reason.rb +12 -14
  60. data/lib/freeclimb/models/get_speech_webhook.rb +118 -122
  61. data/lib/freeclimb/models/grammar_file_built_in.rb +12 -14
  62. data/lib/freeclimb/models/grammar_type.rb +12 -14
  63. data/lib/freeclimb/models/hangup.rb +34 -39
  64. data/lib/freeclimb/models/if_machine.rb +12 -14
  65. data/lib/freeclimb/models/inbound_call_webhook.rb +85 -89
  66. data/lib/freeclimb/models/incoming_number_list.rb +74 -78
  67. data/lib/freeclimb/models/incoming_number_request.rb +41 -45
  68. data/lib/freeclimb/models/incoming_number_result.rb +122 -126
  69. data/lib/freeclimb/models/language.rb +12 -14
  70. data/lib/freeclimb/models/leave_conference_webhook.rb +79 -83
  71. data/lib/freeclimb/models/log_level.rb +12 -14
  72. data/lib/freeclimb/models/log_list.rb +74 -78
  73. data/lib/freeclimb/models/log_result.rb +67 -71
  74. data/lib/freeclimb/models/machine_detected_webhook.rb +89 -93
  75. data/lib/freeclimb/models/machine_type.rb +12 -14
  76. data/lib/freeclimb/models/make_call_request.rb +77 -81
  77. data/lib/freeclimb/models/message_delivery_webhook.rb +81 -86
  78. data/lib/freeclimb/models/message_direction.rb +12 -14
  79. data/lib/freeclimb/models/message_request.rb +72 -75
  80. data/lib/freeclimb/models/message_result.rb +135 -139
  81. data/lib/freeclimb/models/message_status.rb +12 -14
  82. data/lib/freeclimb/models/message_status_webhook.rb +86 -90
  83. data/lib/freeclimb/models/messages_list.rb +74 -78
  84. data/lib/freeclimb/models/mutable_resource_model.rb +46 -51
  85. data/lib/freeclimb/models/out_dial.rb +80 -84
  86. data/lib/freeclimb/models/out_dial_api_connect_webhook.rb +84 -88
  87. data/lib/freeclimb/models/out_dial_connect_webhook.rb +84 -88
  88. data/lib/freeclimb/models/out_dial_start_webhook.rb +90 -94
  89. data/lib/freeclimb/models/pagination_model.rb +67 -71
  90. data/lib/freeclimb/models/park.rb +44 -48
  91. data/lib/freeclimb/models/pause.rb +33 -37
  92. data/lib/freeclimb/models/percl_command.rb +36 -40
  93. data/lib/freeclimb/models/percl_script.rb +32 -36
  94. data/lib/freeclimb/models/play.rb +44 -48
  95. data/lib/freeclimb/models/play_beep.rb +12 -14
  96. data/lib/freeclimb/models/play_early_media.rb +33 -37
  97. data/lib/freeclimb/models/queue_list.rb +74 -78
  98. data/lib/freeclimb/models/queue_member.rb +55 -59
  99. data/lib/freeclimb/models/queue_member_list.rb +74 -78
  100. data/lib/freeclimb/models/queue_request.rb +37 -42
  101. data/lib/freeclimb/models/queue_result.rb +88 -92
  102. data/lib/freeclimb/models/queue_result_status.rb +12 -14
  103. data/lib/freeclimb/models/queue_wait_webhook.rb +94 -98
  104. data/lib/freeclimb/models/record_utterance.rb +63 -67
  105. data/lib/freeclimb/models/record_utterance_term_reason.rb +12 -14
  106. data/lib/freeclimb/models/record_webhook.rb +119 -123
  107. data/lib/freeclimb/models/recording_list.rb +74 -78
  108. data/lib/freeclimb/models/recording_result.rb +76 -80
  109. data/lib/freeclimb/models/redirect.rb +33 -37
  110. data/lib/freeclimb/models/redirect_webhook.rb +84 -88
  111. data/lib/freeclimb/models/reject.rb +34 -39
  112. data/lib/freeclimb/models/remove_from_conference.rb +28 -33
  113. data/lib/freeclimb/models/remove_from_queue_notification_webhook.rb +89 -93
  114. data/lib/freeclimb/models/request_type.rb +12 -14
  115. data/lib/freeclimb/models/say.rb +49 -53
  116. data/lib/freeclimb/models/send_digits.rb +43 -47
  117. data/lib/freeclimb/models/set_dtmf_pass_through.rb +34 -39
  118. data/lib/freeclimb/models/set_listen.rb +34 -39
  119. data/lib/freeclimb/models/set_talk.rb +34 -39
  120. data/lib/freeclimb/models/sms.rb +48 -52
  121. data/lib/freeclimb/models/sms_ten_dlc_brand.rb +187 -190
  122. data/lib/freeclimb/models/sms_ten_dlc_brand_alt_business_id_type.rb +12 -14
  123. data/lib/freeclimb/models/sms_ten_dlc_brand_entity_type.rb +12 -14
  124. data/lib/freeclimb/models/sms_ten_dlc_brand_identity_status.rb +12 -14
  125. data/lib/freeclimb/models/sms_ten_dlc_brand_relationship.rb +12 -14
  126. data/lib/freeclimb/models/sms_ten_dlc_brand_stock_exchange.rb +12 -14
  127. data/lib/freeclimb/models/sms_ten_dlc_brands_list_result.rb +74 -78
  128. data/lib/freeclimb/models/sms_ten_dlc_campaign.rb +226 -229
  129. data/lib/freeclimb/models/sms_ten_dlc_campaign_status.rb +12 -14
  130. data/lib/freeclimb/models/sms_ten_dlc_campaigns_list_result.rb +74 -78
  131. data/lib/freeclimb/models/sms_ten_dlc_partner_campaign.rb +186 -189
  132. data/lib/freeclimb/models/sms_ten_dlc_partner_campaign_brand.rb +84 -87
  133. data/lib/freeclimb/models/sms_ten_dlc_partner_campaign_status.rb +12 -14
  134. data/lib/freeclimb/models/sms_ten_dlc_partner_campaigns_list_result.rb +74 -78
  135. data/lib/freeclimb/models/sms_toll_free_campaign.rb +61 -64
  136. data/lib/freeclimb/models/sms_toll_free_campaign_registration_status.rb +12 -14
  137. data/lib/freeclimb/models/sms_toll_free_campaigns_list_result.rb +74 -78
  138. data/lib/freeclimb/models/start_record_call.rb +28 -33
  139. data/lib/freeclimb/models/terminate_conference.rb +28 -33
  140. data/lib/freeclimb/models/tfn.rb +31 -35
  141. data/lib/freeclimb/models/tfn_campaign.rb +76 -79
  142. data/lib/freeclimb/models/transcribe_reason.rb +12 -14
  143. data/lib/freeclimb/models/transcribe_term_reason.rb +12 -14
  144. data/lib/freeclimb/models/transcribe_utterance.rb +61 -65
  145. data/lib/freeclimb/models/transcribe_utterance_record.rb +43 -47
  146. data/lib/freeclimb/models/transcribe_webhook.rb +150 -154
  147. data/lib/freeclimb/models/unpark.rb +28 -33
  148. data/lib/freeclimb/models/update_call_request.rb +31 -35
  149. data/lib/freeclimb/models/update_call_request_status.rb +12 -14
  150. data/lib/freeclimb/models/update_conference_participant_request.rb +41 -46
  151. data/lib/freeclimb/models/update_conference_request.rb +41 -45
  152. data/lib/freeclimb/models/update_conference_request_status.rb +12 -14
  153. data/lib/freeclimb/models/webhook.rb +32 -37
  154. data/lib/freeclimb/utils/request_verifier.rb +14 -14
  155. data/lib/freeclimb/utils/signature_information.rb +8 -8
  156. data/lib/freeclimb/version.rb +10 -12
  157. data/lib/freeclimb.rb +156 -158
  158. data/openapi.json +3 -0
  159. data/package.json +1 -1
  160. data/spec/api/default_api_spec.rb +492 -676
  161. data/spec/api_client_spec.rb +100 -102
  162. data/spec/configuration_spec.rb +16 -18
  163. data/spec/models/account_request_spec.rb +104 -233
  164. data/spec/models/account_result_spec.rb +393 -1013
  165. data/spec/models/account_status_spec.rb +27 -30
  166. data/spec/models/account_type_spec.rb +24 -27
  167. data/spec/models/add_to_conference_notification_webhook_spec.rb +464 -1197
  168. data/spec/models/add_to_conference_spec.rb +354 -850
  169. data/spec/models/add_to_queue_notification_webhook_spec.rb +341 -864
  170. data/spec/models/answered_by_spec.rb +24 -27
  171. data/spec/models/application_list_spec.rb +289 -646
  172. data/spec/models/application_request_spec.rb +265 -679
  173. data/spec/models/application_result_spec.rb +444 -1184
  174. data/spec/models/available_number_list_spec.rb +289 -646
  175. data/spec/models/available_number_spec.rb +271 -650
  176. data/spec/models/barge_in_reason_spec.rb +27 -30
  177. data/spec/models/buy_incoming_number_request_spec.rb +136 -322
  178. data/spec/models/call_control_webhook_spec.rb +203 -503
  179. data/spec/models/call_direction_spec.rb +27 -30
  180. data/spec/models/call_ended_reason_spec.rb +107 -110
  181. data/spec/models/call_list_spec.rb +289 -646
  182. data/spec/models/call_result_spec.rb +679 -1778
  183. data/spec/models/call_status_spec.rb +47 -50
  184. data/spec/models/call_status_webhook_spec.rb +413 -990
  185. data/spec/models/capabilities_spec.rb +202 -411
  186. data/spec/models/completion_request_spec.rb +75 -143
  187. data/spec/models/completion_result_spec.rb +104 -231
  188. data/spec/models/completion_result_status_spec.rb +24 -27
  189. data/spec/models/conference_list_spec.rb +289 -646
  190. data/spec/models/conference_participant_list_spec.rb +289 -646
  191. data/spec/models/conference_participant_result_spec.rb +384 -938
  192. data/spec/models/conference_recording_status_webhook_spec.rb +464 -1197
  193. data/spec/models/conference_result_spec.rb +489 -1263
  194. data/spec/models/conference_status_spec.rb +31 -34
  195. data/spec/models/conference_status_webhook_spec.rb +464 -1197
  196. data/spec/models/create_conference_request_spec.rb +204 -485
  197. data/spec/models/create_conference_spec.rb +237 -557
  198. data/spec/models/create_conference_webhook_spec.rb +464 -1197
  199. data/spec/models/create_web_rtc_token_spec.rb +136 -307
  200. data/spec/models/dequeue_spec.rb +14 -17
  201. data/spec/models/dequeue_webhook_spec.rb +400 -1021
  202. data/spec/models/enqueue_spec.rb +169 -412
  203. data/spec/models/filter_logs_request_spec.rb +73 -145
  204. data/spec/models/get_digits_reason_spec.rb +31 -34
  205. data/spec/models/get_digits_spec.rb +326 -737
  206. data/spec/models/get_digits_webhook_spec.rb +435 -1127
  207. data/spec/models/get_speech_reason_spec.rb +39 -42
  208. data/spec/models/get_speech_spec.rb +399 -1036
  209. data/spec/models/get_speech_webhook_spec.rb +608 -1553
  210. data/spec/models/grammar_file_built_in_spec.rb +75 -78
  211. data/spec/models/grammar_type_spec.rb +24 -27
  212. data/spec/models/hangup_spec.rb +73 -145
  213. data/spec/models/if_machine_spec.rb +24 -27
  214. data/spec/models/inbound_call_webhook_spec.rb +371 -951
  215. data/spec/models/incoming_number_list_spec.rb +289 -646
  216. data/spec/models/incoming_number_request_spec.rb +136 -322
  217. data/spec/models/incoming_number_result_spec.rb +573 -1489
  218. data/spec/models/language_spec.rb +120 -123
  219. data/spec/models/leave_conference_webhook_spec.rb +341 -864
  220. data/spec/models/log_level_spec.rb +27 -30
  221. data/spec/models/log_list_spec.rb +289 -646
  222. data/spec/models/log_result_spec.rb +272 -667
  223. data/spec/models/machine_detected_webhook_spec.rb +401 -1036
  224. data/spec/models/machine_type_spec.rb +24 -27
  225. data/spec/models/make_call_request_spec.rb +353 -905
  226. data/spec/models/message_delivery_webhook_spec.rb +357 -942
  227. data/spec/models/message_direction_spec.rb +24 -27
  228. data/spec/models/message_request_spec.rb +324 -818
  229. data/spec/models/message_result_spec.rb +647 -1710
  230. data/spec/models/message_status_spec.rb +60 -63
  231. data/spec/models/message_status_webhook_spec.rb +405 -1045
  232. data/spec/models/messages_list_spec.rb +289 -646
  233. data/spec/models/mutable_resource_model_spec.rb +168 -395
  234. data/spec/models/out_dial_api_connect_webhook_spec.rb +371 -951
  235. data/spec/models/out_dial_connect_webhook_spec.rb +371 -951
  236. data/spec/models/out_dial_spec.rb +354 -903
  237. data/spec/models/out_dial_start_webhook_spec.rb +401 -1038
  238. data/spec/models/pagination_model_spec.rb +259 -577
  239. data/spec/models/park_spec.rb +136 -322
  240. data/spec/models/pause_spec.rb +72 -128
  241. data/spec/models/percl_command_spec.rb +76 -145
  242. data/spec/models/percl_script_spec.rb +73 -127
  243. data/spec/models/play_beep_spec.rb +31 -34
  244. data/spec/models/play_early_media_spec.rb +73 -145
  245. data/spec/models/play_spec.rb +135 -287
  246. data/spec/models/queue_list_spec.rb +289 -646
  247. data/spec/models/queue_member_list_spec.rb +289 -646
  248. data/spec/models/queue_member_spec.rb +199 -467
  249. data/spec/models/queue_request_spec.rb +103 -216
  250. data/spec/models/queue_result_spec.rb +388 -965
  251. data/spec/models/queue_result_status_spec.rb +31 -34
  252. data/spec/models/queue_wait_webhook_spec.rb +429 -1091
  253. data/spec/models/record_utterance_spec.rb +263 -591
  254. data/spec/models/record_utterance_term_reason_spec.rb +31 -34
  255. data/spec/models/record_webhook_spec.rb +605 -1548
  256. data/spec/models/recording_list_spec.rb +289 -646
  257. data/spec/models/recording_result_spec.rb +323 -819
  258. data/spec/models/redirect_spec.rb +73 -145
  259. data/spec/models/redirect_webhook_spec.rb +371 -951
  260. data/spec/models/reject_spec.rb +73 -145
  261. data/spec/models/remove_from_conference_spec.rb +14 -17
  262. data/spec/models/remove_from_queue_notification_webhook_spec.rb +404 -1023
  263. data/spec/models/request_type_spec.rb +107 -110
  264. data/spec/models/say_spec.rb +168 -377
  265. data/spec/models/send_digits_spec.rb +135 -287
  266. data/spec/models/set_dtmf_pass_through_spec.rb +74 -127
  267. data/spec/models/set_listen_spec.rb +74 -127
  268. data/spec/models/set_talk_spec.rb +74 -127
  269. data/spec/models/sms_spec.rb +169 -412
  270. data/spec/models/sms_ten_dlc_brand_alt_business_id_type_spec.rb +31 -34
  271. data/spec/models/sms_ten_dlc_brand_entity_type_spec.rb +35 -38
  272. data/spec/models/sms_ten_dlc_brand_identity_status_spec.rb +31 -34
  273. data/spec/models/sms_ten_dlc_brand_relationship_spec.rb +35 -38
  274. data/spec/models/sms_ten_dlc_brand_spec.rb +1082 -2746
  275. data/spec/models/sms_ten_dlc_brand_stock_exchange_spec.rb +124 -127
  276. data/spec/models/sms_ten_dlc_brands_list_result_spec.rb +289 -646
  277. data/spec/models/sms_ten_dlc_campaign_spec.rb +1139 -2881
  278. data/spec/models/sms_ten_dlc_campaign_status_spec.rb +24 -27
  279. data/spec/models/sms_ten_dlc_campaigns_list_result_spec.rb +289 -646
  280. data/spec/models/sms_ten_dlc_partner_campaign_brand_spec.rb +406 -1004
  281. data/spec/models/sms_ten_dlc_partner_campaign_spec.rb +961 -2393
  282. data/spec/models/sms_ten_dlc_partner_campaign_status_spec.rb +24 -27
  283. data/spec/models/sms_ten_dlc_partner_campaigns_list_result_spec.rb +289 -646
  284. data/spec/models/sms_toll_free_campaign_registration_status_spec.rb +35 -38
  285. data/spec/models/sms_toll_free_campaign_spec.rb +270 -666
  286. data/spec/models/sms_toll_free_campaigns_list_result_spec.rb +289 -646
  287. data/spec/models/start_record_call_spec.rb +14 -17
  288. data/spec/models/terminate_conference_spec.rb +14 -17
  289. data/spec/models/tfn_campaign_spec.rb +330 -858
  290. data/spec/models/tfn_spec.rb +73 -145
  291. data/spec/models/transcribe_reason_spec.rb +35 -38
  292. data/spec/models/transcribe_term_reason_spec.rb +24 -27
  293. data/spec/models/transcribe_utterance_record_spec.rb +134 -270
  294. data/spec/models/transcribe_utterance_spec.rb +236 -523
  295. data/spec/models/transcribe_webhook_spec.rb +749 -1918
  296. data/spec/models/unpark_spec.rb +14 -17
  297. data/spec/models/update_call_request_spec.rb +74 -143
  298. data/spec/models/update_call_request_status_spec.rb +24 -27
  299. data/spec/models/update_conference_participant_request_spec.rb +137 -268
  300. data/spec/models/update_conference_request_spec.rb +140 -321
  301. data/spec/models/update_conference_request_status_spec.rb +24 -27
  302. data/spec/models/webhook_spec.rb +68 -137
  303. data/spec/quickstart_spec.rb +5 -5
  304. data/spec/spec_helper.rb +92 -100
  305. data/spec/utils/request_verifier_spec.rb +70 -71
  306. data/spec/utils/signature_information_spec.rb +23 -23
  307. data/yarn.lock +9 -0
  308. metadata +3 -151
@@ -1,18 +1,16 @@
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"
16
14
  include Freeclimb
17
15
 
18
16
  # Unit tests for Freeclimb::CallResult
@@ -21,2049 +19,990 @@ include Freeclimb
21
19
  describe Freeclimb::CallResult do
22
20
  let(:instance) { Freeclimb::CallResult.new }
23
21
 
24
- describe 'test an instance of CallResult' do
25
- it 'should create an instance of CallResult' do
22
+ describe "test an instance of CallResult" do
23
+ it "should create an instance of CallResult" do
26
24
  expect(instance).to be_instance_of(Freeclimb::CallResult)
27
25
  end
28
26
  end
29
-
27
+
30
28
  describe 'test attribute "uri"' do
31
- it 'should work' do
32
-
29
+ it "should work" do
33
30
  instance.uri = "TEST_STRING"
34
- expect(instance.uri).to eq("TEST_STRING")
35
-
36
-
37
-
31
+ expect(instance.uri).to eq("TEST_STRING")
38
32
  end
39
33
  end
40
34
 
41
35
  describe 'test attribute "date_created"' do
42
- it 'should work' do
43
-
36
+ it "should work" do
44
37
  instance.date_created = "TEST_STRING"
45
- expect(instance.date_created).to eq("TEST_STRING")
46
-
47
-
48
-
38
+ expect(instance.date_created).to eq("TEST_STRING")
49
39
  end
50
40
  end
51
41
 
52
42
  describe 'test attribute "date_updated"' do
53
- it 'should work' do
54
-
43
+ it "should work" do
55
44
  instance.date_updated = "TEST_STRING"
56
- expect(instance.date_updated).to eq("TEST_STRING")
57
-
58
-
59
-
45
+ expect(instance.date_updated).to eq("TEST_STRING")
60
46
  end
61
47
  end
62
48
 
63
49
  describe 'test attribute "revision"' do
64
- it 'should work' do
65
-
66
-
50
+ it "should work" do
67
51
  instance.revision = 1
68
52
  expect(instance.revision).to eq(1)
69
-
70
-
71
-
72
53
  end
73
54
  end
74
55
 
75
56
  describe 'test attribute "call_id"' do
76
- it 'should work' do
77
-
57
+ it "should work" do
78
58
  instance.call_id = "TEST_STRING"
79
- expect(instance.call_id).to eq("TEST_STRING")
80
-
81
-
82
-
59
+ expect(instance.call_id).to eq("TEST_STRING")
83
60
  end
84
61
  end
85
62
 
86
63
  describe 'test attribute "parent_call_id"' do
87
- it 'should work' do
88
-
64
+ it "should work" do
89
65
  instance.parent_call_id = "TEST_STRING"
90
- expect(instance.parent_call_id).to eq("TEST_STRING")
91
-
92
-
93
-
66
+ expect(instance.parent_call_id).to eq("TEST_STRING")
94
67
  end
95
68
  end
96
69
 
97
70
  describe 'test attribute "account_id"' do
98
- it 'should work' do
99
-
71
+ it "should work" do
100
72
  instance.account_id = "TEST_STRING"
101
- expect(instance.account_id).to eq("TEST_STRING")
102
-
103
-
104
-
73
+ expect(instance.account_id).to eq("TEST_STRING")
105
74
  end
106
75
  end
107
76
 
108
77
  describe 'test attribute "from"' do
109
- it 'should work' do
110
-
78
+ it "should work" do
111
79
  instance.from = "TEST_STRING"
112
- expect(instance.from).to eq("TEST_STRING")
113
-
114
-
115
-
80
+ expect(instance.from).to eq("TEST_STRING")
116
81
  end
117
82
  end
118
83
 
119
84
  describe 'test attribute "to"' do
120
- it 'should work' do
121
-
85
+ it "should work" do
122
86
  instance.to = "TEST_STRING"
123
- expect(instance.to).to eq("TEST_STRING")
124
-
125
-
126
-
87
+ expect(instance.to).to eq("TEST_STRING")
127
88
  end
128
89
  end
129
90
 
130
91
  describe 'test attribute "phone_number_id"' do
131
- it 'should work' do
132
-
92
+ it "should work" do
133
93
  instance.phone_number_id = "TEST_STRING"
134
- expect(instance.phone_number_id).to eq("TEST_STRING")
135
-
136
-
137
-
94
+ expect(instance.phone_number_id).to eq("TEST_STRING")
138
95
  end
139
96
  end
140
97
 
141
-
142
98
  describe 'test attribute "call_status"' do
143
- it 'assigns value QUEUED' do
99
+ it "assigns value QUEUED" do
144
100
  instance.call_status = Freeclimb::CallStatus::QUEUED
145
- expect(instance.call_status).to eq(Freeclimb::CallStatus::QUEUED)
101
+ expect(instance.call_status).to eq(Freeclimb::CallStatus::QUEUED)
146
102
  end
147
- it 'assigns value RINGING' do
103
+ it "assigns value RINGING" do
148
104
  instance.call_status = Freeclimb::CallStatus::RINGING
149
- expect(instance.call_status).to eq(Freeclimb::CallStatus::RINGING)
105
+ expect(instance.call_status).to eq(Freeclimb::CallStatus::RINGING)
150
106
  end
151
- it 'assigns value IN_PROGRESS' do
107
+ it "assigns value IN_PROGRESS" do
152
108
  instance.call_status = Freeclimb::CallStatus::IN_PROGRESS
153
- expect(instance.call_status).to eq(Freeclimb::CallStatus::IN_PROGRESS)
109
+ expect(instance.call_status).to eq(Freeclimb::CallStatus::IN_PROGRESS)
154
110
  end
155
- it 'assigns value CANCELED' do
111
+ it "assigns value CANCELED" do
156
112
  instance.call_status = Freeclimb::CallStatus::CANCELED
157
- expect(instance.call_status).to eq(Freeclimb::CallStatus::CANCELED)
113
+ expect(instance.call_status).to eq(Freeclimb::CallStatus::CANCELED)
158
114
  end
159
- it 'assigns value COMPLETED' do
115
+ it "assigns value COMPLETED" do
160
116
  instance.call_status = Freeclimb::CallStatus::COMPLETED
161
- expect(instance.call_status).to eq(Freeclimb::CallStatus::COMPLETED)
117
+ expect(instance.call_status).to eq(Freeclimb::CallStatus::COMPLETED)
162
118
  end
163
- it 'assigns value FAILED' do
119
+ it "assigns value FAILED" do
164
120
  instance.call_status = Freeclimb::CallStatus::FAILED
165
- expect(instance.call_status).to eq(Freeclimb::CallStatus::FAILED)
121
+ expect(instance.call_status).to eq(Freeclimb::CallStatus::FAILED)
166
122
  end
167
- it 'assigns value BUSY' do
123
+ it "assigns value BUSY" do
168
124
  instance.call_status = Freeclimb::CallStatus::BUSY
169
- expect(instance.call_status).to eq(Freeclimb::CallStatus::BUSY)
125
+ expect(instance.call_status).to eq(Freeclimb::CallStatus::BUSY)
170
126
  end
171
- it 'assigns value NO_ANSWER' do
127
+ it "assigns value NO_ANSWER" do
172
128
  instance.call_status = Freeclimb::CallStatus::NO_ANSWER
173
- expect(instance.call_status).to eq(Freeclimb::CallStatus::NO_ANSWER)
129
+ expect(instance.call_status).to eq(Freeclimb::CallStatus::NO_ANSWER)
174
130
  end
175
131
  end
176
132
  describe 'test attribute "start_time"' do
177
- it 'should work' do
178
-
133
+ it "should work" do
179
134
  instance.start_time = "TEST_STRING"
180
- expect(instance.start_time).to eq("TEST_STRING")
181
-
182
-
183
-
135
+ expect(instance.start_time).to eq("TEST_STRING")
184
136
  end
185
137
  end
186
138
 
187
139
  describe 'test attribute "connect_time"' do
188
- it 'should work' do
189
-
140
+ it "should work" do
190
141
  instance.connect_time = "TEST_STRING"
191
- expect(instance.connect_time).to eq("TEST_STRING")
192
-
193
-
194
-
142
+ expect(instance.connect_time).to eq("TEST_STRING")
195
143
  end
196
144
  end
197
145
 
198
146
  describe 'test attribute "end_time"' do
199
- it 'should work' do
200
-
147
+ it "should work" do
201
148
  instance.end_time = "TEST_STRING"
202
- expect(instance.end_time).to eq("TEST_STRING")
203
-
204
-
205
-
149
+ expect(instance.end_time).to eq("TEST_STRING")
206
150
  end
207
151
  end
208
152
 
209
153
  describe 'test attribute "duration"' do
210
- it 'should work' do
211
-
212
-
154
+ it "should work" do
213
155
  instance.duration = 1
214
156
  expect(instance.duration).to eq(1)
215
-
216
-
217
-
218
157
  end
219
158
  end
220
159
 
221
160
  describe 'test attribute "connect_duration"' do
222
- it 'should work' do
223
-
224
-
161
+ it "should work" do
225
162
  instance.connect_duration = 1
226
163
  expect(instance.connect_duration).to eq(1)
227
-
228
-
229
-
230
164
  end
231
165
  end
232
166
 
233
-
234
167
  describe 'test attribute "direction"' do
235
- it 'assigns value INBOUND' do
168
+ it "assigns value INBOUND" do
236
169
  instance.direction = Freeclimb::CallDirection::INBOUND
237
- expect(instance.direction).to eq(Freeclimb::CallDirection::INBOUND)
170
+ expect(instance.direction).to eq(Freeclimb::CallDirection::INBOUND)
238
171
  end
239
- it 'assigns value OUTBOUND_API' do
172
+ it "assigns value OUTBOUND_API" do
240
173
  instance.direction = Freeclimb::CallDirection::OUTBOUND_API
241
- expect(instance.direction).to eq(Freeclimb::CallDirection::OUTBOUND_API)
174
+ expect(instance.direction).to eq(Freeclimb::CallDirection::OUTBOUND_API)
242
175
  end
243
- it 'assigns value OUTBOUND_DIAL' do
176
+ it "assigns value OUTBOUND_DIAL" do
244
177
  instance.direction = Freeclimb::CallDirection::OUTBOUND_DIAL
245
- expect(instance.direction).to eq(Freeclimb::CallDirection::OUTBOUND_DIAL)
178
+ expect(instance.direction).to eq(Freeclimb::CallDirection::OUTBOUND_DIAL)
246
179
  end
247
180
  end
248
181
 
249
182
  describe 'test attribute "answered_by"' do
250
- it 'assigns value HUMAN' do
183
+ it "assigns value HUMAN" do
251
184
  instance.answered_by = Freeclimb::AnsweredBy::HUMAN
252
- expect(instance.answered_by).to eq(Freeclimb::AnsweredBy::HUMAN)
185
+ expect(instance.answered_by).to eq(Freeclimb::AnsweredBy::HUMAN)
253
186
  end
254
- it 'assigns value MACHINE' do
187
+ it "assigns value MACHINE" do
255
188
  instance.answered_by = Freeclimb::AnsweredBy::MACHINE
256
- expect(instance.answered_by).to eq(Freeclimb::AnsweredBy::MACHINE)
189
+ expect(instance.answered_by).to eq(Freeclimb::AnsweredBy::MACHINE)
257
190
  end
258
191
  end
259
192
  describe 'test attribute "subresource_uris"' do
260
- it 'should work' do
261
-
262
- testObject = Object.new()
193
+ it "should work" do
194
+ testObject = Object.new
263
195
  instance.subresource_uris = testObject
264
196
  expect(instance.subresource_uris).to eq(testObject)
265
-
266
-
197
+
267
198
  instance.subresource_uris = Object.new
268
199
  expect(instance.subresource_uris).to be_instance_of(Object)
269
-
270
200
  end
271
201
  end
272
202
 
273
203
  describe 'test attribute "application_id"' do
274
- it 'should work' do
275
-
204
+ it "should work" do
276
205
  instance.application_id = "TEST_STRING"
277
- expect(instance.application_id).to eq("TEST_STRING")
278
-
279
-
280
-
206
+ expect(instance.application_id).to eq("TEST_STRING")
281
207
  end
282
208
  end
283
209
 
284
210
  describe 'test method "initialize"' do
285
- it 'properly initializes with values' do
286
- expect { instance = Freeclimb::CallResult.new(
287
-
288
- uri: "TS",
289
-
290
-
291
-
292
-
293
- date_created: "TS",
294
-
295
-
296
-
297
-
298
- date_updated: "TS",
299
-
300
-
301
-
302
- revision: 1,
303
-
304
-
305
-
306
-
307
- call_id: "TS",
308
-
309
-
310
-
311
-
312
- parent_call_id: "TS",
313
-
314
-
315
-
316
-
317
- account_id: "TS",
318
-
319
-
320
-
321
-
322
- from: "TS",
323
-
324
-
325
-
326
-
327
- to: "TS",
328
-
329
-
330
-
331
-
332
- phone_number_id: "TS",
333
-
334
-
335
-
336
-
337
- call_status: Freeclimb::CallStatus::QUEUED,
338
-
339
-
340
-
341
-
342
- start_time: "TS",
343
-
344
-
345
-
346
-
347
- connect_time: "TS",
348
-
349
-
350
-
351
-
352
- end_time: "TS",
353
-
354
-
355
-
356
- duration: 1,
357
-
358
-
359
-
360
- connect_duration: 1,
361
-
362
-
363
-
364
-
365
- direction: Freeclimb::CallDirection::INBOUND,
366
-
367
-
368
-
369
-
370
- answered_by: Freeclimb::AnsweredBy::HUMAN,
371
-
372
-
373
-
374
-
375
-
376
-
377
- subresource_uris: Object.new(),
378
-
379
-
380
- application_id: "TS",
381
-
382
-
383
-
384
- )}.not_to raise_error()
385
- end
386
- it 'fails to initialize with input argument that is not a hash in Freeclimb::CallResult' do
387
- expect { instance = Freeclimb::CallResult.new(
388
-
389
- uri: "TS",
390
-
391
-
392
-
393
-
394
- date_created: "TS",
395
-
396
-
397
-
398
-
399
- date_updated: "TS",
400
-
401
-
402
-
403
- revision: 1,
404
-
405
-
406
-
407
-
408
- call_id: "TS",
409
-
410
-
411
-
412
-
413
- parent_call_id: "TS",
414
-
415
-
416
-
417
-
418
- account_id: "TS",
419
-
420
-
421
-
422
-
423
- from: "TS",
424
-
425
-
426
-
427
-
428
- to: "TS",
429
-
430
-
431
-
432
-
433
- phone_number_id: "TS",
434
-
435
-
436
-
437
-
438
- call_status: Freeclimb::CallStatus::QUEUED,
439
-
440
-
441
-
442
-
443
- start_time: "TS",
444
-
445
-
446
-
447
-
448
- connect_time: "TS",
449
-
450
-
451
-
452
-
453
- end_time: "TS",
454
-
455
-
456
-
457
- duration: 1,
458
-
459
-
460
-
461
- connect_duration: 1,
462
-
463
-
464
-
465
-
466
- direction: Freeclimb::CallDirection::INBOUND,
467
-
468
-
469
-
470
-
471
- answered_by: Freeclimb::AnsweredBy::HUMAN,
472
-
473
-
474
-
475
-
476
-
477
-
478
- subresource_uris: Object.new,
479
-
480
-
481
- application_id: "TS",
482
-
483
-
484
-
485
- invalid_attribute: true
486
- )}.to raise_error(ArgumentError)
487
- end
488
- it 'fails to initialize with invalid attribute' do
489
- expect { instance = Freeclimb::CallResult.new(
490
-
491
- uri: "TS",
492
-
493
-
494
-
495
-
496
- date_created: "TS",
497
-
498
-
499
-
500
-
501
- date_updated: "TS",
502
-
503
-
504
-
505
- revision: 1,
506
-
507
-
508
-
509
-
510
- call_id: "TS",
511
-
512
-
513
-
514
-
515
- parent_call_id: "TS",
516
-
517
-
518
-
519
-
520
- account_id: "TS",
521
-
522
-
523
-
524
-
525
- from: "TS",
526
-
527
-
528
-
529
-
530
- to: "TS",
531
-
532
-
533
-
534
-
535
- phone_number_id: "TS",
536
-
537
-
538
-
539
-
540
- call_status: Freeclimb::CallStatus::QUEUED,
541
-
542
-
543
-
544
-
545
- start_time: "TS",
546
-
547
-
548
-
549
-
550
- connect_time: "TS",
551
-
552
-
553
-
554
-
555
- end_time: "TS",
556
-
557
-
558
-
559
- duration: 1,
560
-
561
-
562
-
563
- connect_duration: 1,
564
-
565
-
566
-
567
-
568
- direction: Freeclimb::CallDirection::INBOUND,
569
-
570
-
571
-
572
-
573
- answered_by: Freeclimb::AnsweredBy::HUMAN,
574
-
575
-
576
-
577
-
578
-
579
-
580
- subresource_uris: Object.new,
581
-
582
-
583
- application_id: "TS",
584
-
585
-
586
-
587
- invalid_attribute: true
588
- )}.to raise_error(ArgumentError)
589
- end
590
- end
591
-
592
- describe 'test method "valid"' do
593
- it 'checks if properties are valid' do
594
- instance = Freeclimb::CallResult.new(
595
-
211
+ it "properly initializes with values" do
212
+ expect {
213
+ Freeclimb::CallResult.new(
596
214
  uri: "TS",
597
-
598
-
599
-
600
-
215
+
601
216
  date_created: "TS",
602
-
603
-
604
-
605
-
217
+
606
218
  date_updated: "TS",
607
-
608
-
609
-
219
+
610
220
  revision: 1,
611
-
612
-
613
-
614
-
221
+
615
222
  call_id: "TS",
616
-
617
-
618
-
619
-
223
+
620
224
  parent_call_id: "TS",
621
-
622
-
623
-
624
-
225
+
625
226
  account_id: "TS",
626
-
627
-
628
-
629
-
227
+
630
228
  from: "TS",
631
-
632
-
633
-
634
-
229
+
635
230
  to: "TS",
636
-
637
-
638
-
639
-
231
+
640
232
  phone_number_id: "TS",
641
-
642
-
643
-
644
-
233
+
645
234
  call_status: Freeclimb::CallStatus::QUEUED,
646
-
647
-
648
-
649
-
235
+
650
236
  start_time: "TS",
651
-
652
-
653
-
654
-
237
+
655
238
  connect_time: "TS",
656
-
657
-
658
-
659
-
239
+
660
240
  end_time: "TS",
661
-
662
-
663
-
241
+
664
242
  duration: 1,
665
-
666
-
667
-
243
+
668
244
  connect_duration: 1,
669
-
670
-
671
-
672
-
245
+
673
246
  direction: Freeclimb::CallDirection::INBOUND,
674
-
675
-
676
-
677
-
247
+
678
248
  answered_by: Freeclimb::AnsweredBy::HUMAN,
679
-
680
-
681
-
682
-
683
-
684
-
685
- subresource_uris: Object.new(),
686
-
687
-
688
- application_id: "TS",
689
-
690
-
691
-
692
- )
693
- expect(instance.valid?).to eq(true)
694
- end
695
249
 
250
+ subresource_uris: Object.new,
696
251
 
697
- skip 'checks if properties are invalid' do
698
- instance = Freeclimb::CallResult.new(
699
-
700
- )
701
- expect(instance.valid?).to eq(false)
252
+ application_id: "TS"
253
+ )
254
+ }.not_to raise_error
702
255
  end
703
-
704
- end
705
-
706
- describe 'test method "eql?"' do
707
- it 'checks if objects are equal' do
708
-
709
-
710
-
711
-
712
-
713
-
714
-
715
-
716
-
717
-
718
-
719
-
720
-
721
-
722
-
723
-
724
-
725
-
726
-
727
- obj_Object = Object.new()
728
-
729
-
730
- instance_1 = Freeclimb::CallResult.new(
731
-
256
+ it "fails to initialize with input argument that is not a hash in Freeclimb::CallResult" do
257
+ expect {
258
+ Freeclimb::CallResult.new(
732
259
  uri: "TS",
733
-
734
-
735
-
736
-
260
+
737
261
  date_created: "TS",
738
-
739
-
740
-
741
-
262
+
742
263
  date_updated: "TS",
743
-
744
-
745
-
264
+
746
265
  revision: 1,
747
-
748
-
749
-
750
-
266
+
751
267
  call_id: "TS",
752
-
753
-
754
-
755
-
268
+
756
269
  parent_call_id: "TS",
757
-
758
-
759
-
760
-
270
+
761
271
  account_id: "TS",
762
-
763
-
764
-
765
-
272
+
766
273
  from: "TS",
767
-
768
-
769
-
770
-
274
+
771
275
  to: "TS",
772
-
773
-
774
-
775
-
276
+
776
277
  phone_number_id: "TS",
777
-
778
-
779
-
780
-
781
-
782
-
278
+
783
279
  call_status: Freeclimb::CallStatus::QUEUED,
784
-
785
-
280
+
786
281
  start_time: "TS",
787
-
788
-
789
-
790
-
282
+
791
283
  connect_time: "TS",
792
-
793
-
794
-
795
-
284
+
796
285
  end_time: "TS",
797
-
798
-
799
-
286
+
800
287
  duration: 1,
801
-
802
-
803
-
288
+
804
289
  connect_duration: 1,
805
-
806
-
807
-
808
-
809
-
810
-
290
+
811
291
  direction: Freeclimb::CallDirection::INBOUND,
812
-
813
-
814
-
815
-
292
+
816
293
  answered_by: Freeclimb::AnsweredBy::HUMAN,
817
-
818
-
819
-
820
- subresource_uris: obj_Object,
821
-
822
-
823
-
294
+
295
+ subresource_uris: Object.new,
296
+
824
297
  application_id: "TS",
825
-
826
-
827
-
828
- )
829
- instance_2 = Freeclimb::CallResult.new(
830
-
298
+
299
+ invalid_attribute: true
300
+ )
301
+ }.to raise_error(ArgumentError)
302
+ end
303
+ it "fails to initialize with invalid attribute" do
304
+ expect {
305
+ Freeclimb::CallResult.new(
831
306
  uri: "TS",
832
-
833
-
834
-
835
-
307
+
836
308
  date_created: "TS",
837
-
838
-
839
-
840
-
309
+
841
310
  date_updated: "TS",
842
-
843
-
844
-
845
-
846
-
311
+
847
312
  revision: 1,
848
-
849
-
313
+
850
314
  call_id: "TS",
851
-
852
-
853
-
854
-
315
+
855
316
  parent_call_id: "TS",
856
-
857
-
858
-
859
-
317
+
860
318
  account_id: "TS",
861
-
862
-
863
-
864
-
319
+
865
320
  from: "TS",
866
-
867
-
868
-
869
-
321
+
870
322
  to: "TS",
871
-
872
-
873
-
874
-
323
+
875
324
  phone_number_id: "TS",
876
-
877
-
878
-
879
-
880
-
881
-
325
+
882
326
  call_status: Freeclimb::CallStatus::QUEUED,
883
-
884
-
327
+
885
328
  start_time: "TS",
886
-
887
-
888
-
889
-
329
+
890
330
  connect_time: "TS",
891
-
892
-
893
-
894
-
331
+
895
332
  end_time: "TS",
896
-
897
-
898
-
899
-
900
-
333
+
901
334
  duration: 1,
902
-
903
-
904
-
335
+
905
336
  connect_duration: 1,
906
-
907
-
908
-
909
-
910
- direction: Freeclimb::CallDirection::INBOUND,
911
-
912
-
913
-
914
-
915
- answered_by: Freeclimb::AnsweredBy::HUMAN,
916
-
917
-
918
-
919
- subresource_uris: obj_Object,
920
-
921
-
922
-
923
- application_id: "TS",
924
-
925
-
926
-
927
- )
928
- expect(instance_1.eql?(instance_2)).to eq(true)
929
- end
930
-
931
- it 'checks if objects are not equal' do
932
- instance_1 = Freeclimb::CallResult.new(
933
-
934
- uri: "TS",
935
-
936
-
937
-
938
-
939
- date_created: "TS",
940
-
941
-
942
-
943
-
944
- date_updated: "TS",
945
-
946
-
947
-
948
- revision: 2,
949
-
950
-
951
-
952
-
953
- call_id: "TS",
954
-
955
-
956
-
957
-
958
- parent_call_id: "TS",
959
-
960
-
961
-
962
-
963
- account_id: "TS",
964
-
965
-
966
-
967
-
968
- from: "TS",
969
-
970
-
971
-
972
-
973
- to: "TS",
974
-
975
-
976
-
977
-
978
- phone_number_id: "TS",
979
-
980
-
981
-
982
-
983
-
984
-
985
- call_status: Freeclimb::CallStatus::QUEUED,
986
-
987
-
988
- start_time: "TS",
989
-
990
-
991
-
992
-
993
- connect_time: "TS",
994
-
995
-
996
-
997
-
998
- end_time: "TS",
999
-
1000
-
1001
-
1002
- duration: 2,
1003
-
1004
-
1005
-
1006
- connect_duration: 2,
1007
-
1008
-
1009
-
1010
-
1011
-
1012
-
337
+
1013
338
  direction: Freeclimb::CallDirection::INBOUND,
1014
-
1015
-
1016
-
1017
-
339
+
1018
340
  answered_by: Freeclimb::AnsweredBy::HUMAN,
1019
-
1020
-
1021
-
1022
- subresource_uris: Object.new(),
1023
-
1024
- subresource_uris: Object.new(),
1025
-
1026
-
341
+
342
+ subresource_uris: Object.new,
343
+
1027
344
  application_id: "TS",
1028
-
1029
-
1030
-
1031
- )
1032
- instance_2 = Freeclimb::CallResult.new(
1033
-
1034
- uri: "ST",
1035
-
1036
-
1037
-
1038
-
1039
- date_created: "ST",
1040
-
1041
-
1042
-
1043
-
1044
- date_updated: "ST",
1045
-
1046
-
1047
-
1048
- revision: 1,
1049
-
1050
-
1051
-
1052
-
1053
- call_id: "ST",
1054
-
1055
-
1056
-
1057
-
1058
- parent_call_id: "ST",
1059
-
1060
-
1061
-
1062
-
1063
- account_id: "ST",
1064
-
1065
-
1066
-
1067
-
1068
- from: "ST",
1069
-
1070
-
1071
-
1072
-
1073
- to: "ST",
1074
-
1075
-
1076
-
1077
-
1078
- phone_number_id: "ST",
1079
-
1080
-
1081
-
1082
-
1083
-
1084
-
1085
- call_status: nil,
1086
-
1087
-
1088
- start_time: "ST",
1089
-
1090
-
1091
-
1092
-
1093
- connect_time: "ST",
1094
-
1095
-
1096
-
1097
-
1098
- end_time: "ST",
1099
-
1100
-
1101
-
1102
- duration: 1,
1103
-
1104
-
1105
-
1106
- connect_duration: 1,
1107
-
1108
-
1109
-
1110
-
1111
-
1112
-
1113
- direction: nil,
1114
-
1115
-
1116
-
1117
-
1118
- answered_by: nil,
1119
-
1120
-
1121
-
1122
- subresource_uris: Object.new(),
1123
-
1124
-
1125
-
1126
- application_id: "ST",
1127
-
1128
-
1129
-
1130
- )
1131
- expect(instance_1.eql?(instance_2)).to eq(false)
1132
- end
1133
- end
1134
-
1135
- describe 'test method "hash"' do
1136
- it 'calculates hash code' do
1137
- instance = Freeclimb::CallResult.new(
1138
-
1139
- uri: "TS",
1140
-
1141
-
1142
-
1143
-
1144
- date_created: "TS",
1145
-
1146
-
1147
-
1148
-
1149
- date_updated: "TS",
1150
-
1151
-
1152
-
1153
- revision: 1,
1154
-
1155
-
1156
-
1157
-
1158
- call_id: "TS",
1159
-
1160
-
1161
-
1162
-
1163
- parent_call_id: "TS",
1164
-
1165
-
1166
-
1167
-
1168
- account_id: "TS",
1169
-
1170
-
1171
-
1172
-
1173
- from: "TS",
1174
-
1175
-
1176
-
1177
-
1178
- to: "TS",
1179
-
1180
-
1181
-
1182
-
1183
- phone_number_id: "TS",
1184
-
1185
-
1186
-
1187
-
1188
- call_status: Freeclimb::CallStatus::QUEUED,
1189
-
1190
-
1191
-
1192
-
1193
- start_time: "TS",
1194
-
1195
-
1196
-
1197
-
1198
- connect_time: "TS",
1199
-
1200
-
1201
-
1202
-
1203
- end_time: "TS",
1204
-
1205
-
1206
-
1207
- duration: 1,
1208
-
1209
-
1210
-
1211
- connect_duration: 1,
1212
-
1213
-
1214
-
1215
-
1216
- direction: Freeclimb::CallDirection::INBOUND,
1217
-
1218
-
1219
-
1220
-
1221
- answered_by: Freeclimb::AnsweredBy::HUMAN,
1222
-
1223
-
1224
-
1225
-
1226
-
1227
-
1228
- subresource_uris: Object.new(),
1229
-
1230
-
1231
- application_id: "TS",
1232
-
1233
-
1234
-
1235
- )
1236
- expect(instance.hash).to be_a_kind_of(Integer)
345
+
346
+ invalid_attribute: true
347
+ )
348
+ }.to raise_error(ArgumentError)
1237
349
  end
1238
350
  end
1239
351
 
1240
- describe 'test method "build_from_hash"' do
1241
- it 'builds equivalent model from hash code' do
1242
- instance_1 = Freeclimb::CallResult.new(
1243
-
352
+ describe 'test method "valid"' do
353
+ it "checks if properties are valid" do
354
+ instance = Freeclimb::CallResult.new(
1244
355
  uri: "TS",
1245
-
1246
-
1247
-
1248
-
356
+
1249
357
  date_created: "TS",
1250
-
1251
-
1252
-
1253
-
358
+
1254
359
  date_updated: "TS",
1255
-
1256
-
1257
-
360
+
1258
361
  revision: 1,
1259
-
1260
-
1261
-
1262
-
362
+
1263
363
  call_id: "TS",
1264
-
1265
-
1266
-
1267
-
364
+
1268
365
  parent_call_id: "TS",
1269
-
1270
-
1271
-
1272
-
366
+
1273
367
  account_id: "TS",
1274
-
1275
-
1276
-
1277
-
368
+
1278
369
  from: "TS",
1279
-
1280
-
1281
-
1282
-
370
+
1283
371
  to: "TS",
1284
-
1285
-
1286
-
1287
-
372
+
1288
373
  phone_number_id: "TS",
1289
-
1290
-
1291
-
1292
-
374
+
1293
375
  call_status: Freeclimb::CallStatus::QUEUED,
1294
-
1295
-
1296
-
1297
-
376
+
1298
377
  start_time: "TS",
1299
-
1300
-
1301
-
1302
-
378
+
1303
379
  connect_time: "TS",
1304
-
1305
-
1306
-
1307
-
380
+
1308
381
  end_time: "TS",
1309
-
1310
-
1311
-
382
+
1312
383
  duration: 1,
1313
-
1314
-
1315
-
384
+
1316
385
  connect_duration: 1,
1317
-
1318
-
1319
-
1320
-
386
+
1321
387
  direction: Freeclimb::CallDirection::INBOUND,
1322
-
1323
-
1324
-
1325
-
388
+
1326
389
  answered_by: Freeclimb::AnsweredBy::HUMAN,
1327
-
1328
-
1329
-
1330
-
1331
-
1332
-
1333
- subresource_uris: Object.new(),
1334
-
1335
-
1336
- application_id: "TS",
1337
-
1338
-
1339
-
390
+
391
+ subresource_uris: Object.new,
392
+
393
+ application_id: "TS"
1340
394
  )
1341
- instance_2 = Freeclimb::CallResult.new(
1342
-
395
+ expect(instance.valid?).to eq(true)
396
+ end
397
+
398
+ skip "checks if properties are invalid" do
399
+ instance = Freeclimb::CallResult.new
400
+
401
+ expect(instance.valid?).to eq(false)
402
+ end
403
+ end
404
+
405
+ describe 'test method "eql?"' do
406
+ it "checks if objects are equal" do
407
+ obj_Object = Object.new
408
+
409
+ instance_1 = Freeclimb::CallResult.new(
1343
410
  uri: "TS",
1344
-
1345
-
1346
-
1347
-
411
+
1348
412
  date_created: "TS",
1349
-
1350
-
1351
-
1352
-
413
+
1353
414
  date_updated: "TS",
1354
-
1355
-
1356
-
415
+
1357
416
  revision: 1,
1358
-
1359
-
1360
-
1361
-
417
+
1362
418
  call_id: "TS",
1363
-
1364
-
1365
-
1366
-
419
+
1367
420
  parent_call_id: "TS",
1368
-
1369
-
1370
-
1371
-
421
+
1372
422
  account_id: "TS",
1373
-
1374
-
1375
-
1376
-
423
+
1377
424
  from: "TS",
1378
-
1379
-
1380
-
1381
-
425
+
1382
426
  to: "TS",
1383
-
1384
-
1385
-
1386
-
427
+
1387
428
  phone_number_id: "TS",
1388
-
1389
-
1390
-
1391
-
429
+
1392
430
  call_status: Freeclimb::CallStatus::QUEUED,
1393
-
1394
-
1395
-
1396
-
431
+
1397
432
  start_time: "TS",
1398
-
1399
-
1400
-
1401
-
433
+
1402
434
  connect_time: "TS",
1403
-
1404
-
1405
-
1406
-
435
+
1407
436
  end_time: "TS",
1408
-
1409
-
1410
-
437
+
1411
438
  duration: 1,
1412
-
1413
-
1414
-
439
+
1415
440
  connect_duration: 1,
1416
-
1417
-
1418
-
1419
-
441
+
1420
442
  direction: Freeclimb::CallDirection::INBOUND,
1421
-
1422
-
1423
-
1424
-
443
+
1425
444
  answered_by: Freeclimb::AnsweredBy::HUMAN,
1426
-
1427
-
1428
-
1429
-
1430
-
1431
-
1432
- subresource_uris: Object.new(),
1433
-
1434
-
1435
- application_id: "TS",
1436
-
1437
-
1438
-
1439
- )
1440
445
 
1441
- expect(instance_2.build_from_hash(instance_1.hash)).to eq(instance_1.build_from_hash(instance_1.hash))
1442
- end
1443
- end
446
+ subresource_uris: obj_Object,
1444
447
 
1445
- describe 'test method "_deserialize"' do
1446
- instance = Freeclimb::CallResult.new(
1447
-
448
+ application_id: "TS"
449
+ )
450
+ instance_2 = Freeclimb::CallResult.new(
1448
451
  uri: "TS",
1449
-
1450
-
1451
-
1452
-
452
+
1453
453
  date_created: "TS",
1454
-
1455
-
1456
-
1457
-
454
+
1458
455
  date_updated: "TS",
1459
-
1460
-
1461
-
456
+
1462
457
  revision: 1,
1463
-
1464
-
1465
-
1466
-
458
+
1467
459
  call_id: "TS",
1468
-
1469
-
1470
-
1471
-
460
+
1472
461
  parent_call_id: "TS",
1473
-
1474
-
1475
-
1476
-
462
+
1477
463
  account_id: "TS",
1478
-
1479
-
1480
-
1481
-
464
+
1482
465
  from: "TS",
1483
-
1484
-
1485
-
1486
-
466
+
1487
467
  to: "TS",
1488
-
1489
-
1490
-
1491
-
468
+
1492
469
  phone_number_id: "TS",
1493
-
1494
-
1495
-
1496
-
470
+
1497
471
  call_status: Freeclimb::CallStatus::QUEUED,
1498
-
1499
-
1500
-
1501
-
472
+
1502
473
  start_time: "TS",
1503
-
1504
-
1505
-
1506
-
474
+
1507
475
  connect_time: "TS",
1508
-
1509
-
1510
-
1511
-
476
+
1512
477
  end_time: "TS",
1513
-
1514
-
1515
-
478
+
1516
479
  duration: 1,
1517
-
1518
-
1519
-
480
+
1520
481
  connect_duration: 1,
1521
-
1522
-
1523
-
1524
-
482
+
1525
483
  direction: Freeclimb::CallDirection::INBOUND,
1526
-
1527
-
1528
-
1529
-
484
+
1530
485
  answered_by: Freeclimb::AnsweredBy::HUMAN,
1531
-
1532
-
1533
-
1534
-
1535
-
1536
-
1537
- subresource_uris: Object.new(),
1538
-
1539
-
1540
- application_id: "TS",
1541
-
1542
-
1543
-
486
+
487
+ subresource_uris: obj_Object,
488
+
489
+ application_id: "TS"
490
+ )
491
+ expect(instance_1.eql?(instance_2)).to eq(true)
492
+ end
493
+
494
+ it "checks if objects are not equal" do
495
+ instance_1 = Freeclimb::CallResult.new(
496
+ uri: "TS",
497
+
498
+ date_created: "TS",
499
+
500
+ date_updated: "TS",
501
+
502
+ revision: 2,
503
+
504
+ call_id: "TS",
505
+
506
+ parent_call_id: "TS",
507
+
508
+ account_id: "TS",
509
+
510
+ from: "TS",
511
+
512
+ to: "TS",
513
+
514
+ phone_number_id: "TS",
515
+
516
+ call_status: Freeclimb::CallStatus::QUEUED,
517
+
518
+ start_time: "TS",
519
+
520
+ connect_time: "TS",
521
+
522
+ end_time: "TS",
523
+
524
+ duration: 2,
525
+
526
+ connect_duration: 2,
527
+
528
+ direction: Freeclimb::CallDirection::INBOUND,
529
+
530
+ answered_by: Freeclimb::AnsweredBy::HUMAN,
531
+
532
+ subresource_uris: Object.new,
533
+
534
+ subresource_uris: Object.new,
535
+
536
+ application_id: "TS"
537
+ )
538
+ instance_2 = Freeclimb::CallResult.new(
539
+ uri: "ST",
540
+
541
+ date_created: "ST",
542
+
543
+ date_updated: "ST",
544
+
545
+ revision: 1,
546
+
547
+ call_id: "ST",
548
+
549
+ parent_call_id: "ST",
550
+
551
+ account_id: "ST",
552
+
553
+ from: "ST",
554
+
555
+ to: "ST",
556
+
557
+ phone_number_id: "ST",
558
+
559
+ call_status: nil,
560
+
561
+ start_time: "ST",
562
+
563
+ connect_time: "ST",
564
+
565
+ end_time: "ST",
566
+
567
+ duration: 1,
568
+
569
+ connect_duration: 1,
570
+
571
+ direction: nil,
572
+
573
+ answered_by: nil,
574
+
575
+ subresource_uris: Object.new,
576
+
577
+ application_id: "ST"
578
+ )
579
+ expect(instance_1.eql?(instance_2)).to eq(false)
580
+ end
581
+ end
582
+
583
+ describe 'test method "hash"' do
584
+ it "calculates hash code" do
585
+ instance = Freeclimb::CallResult.new(
586
+ uri: "TS",
587
+
588
+ date_created: "TS",
589
+
590
+ date_updated: "TS",
591
+
592
+ revision: 1,
593
+
594
+ call_id: "TS",
595
+
596
+ parent_call_id: "TS",
597
+
598
+ account_id: "TS",
599
+
600
+ from: "TS",
601
+
602
+ to: "TS",
603
+
604
+ phone_number_id: "TS",
605
+
606
+ call_status: Freeclimb::CallStatus::QUEUED,
607
+
608
+ start_time: "TS",
609
+
610
+ connect_time: "TS",
611
+
612
+ end_time: "TS",
613
+
614
+ duration: 1,
615
+
616
+ connect_duration: 1,
617
+
618
+ direction: Freeclimb::CallDirection::INBOUND,
619
+
620
+ answered_by: Freeclimb::AnsweredBy::HUMAN,
621
+
622
+ subresource_uris: Object.new,
623
+
624
+ application_id: "TS"
625
+ )
626
+ expect(instance.hash).to be_a_kind_of(Integer)
627
+ end
628
+ end
629
+
630
+ describe 'test method "build_from_hash"' do
631
+ it "builds equivalent model from hash code" do
632
+ instance_1 = Freeclimb::CallResult.new(
633
+ uri: "TS",
634
+
635
+ date_created: "TS",
636
+
637
+ date_updated: "TS",
638
+
639
+ revision: 1,
640
+
641
+ call_id: "TS",
642
+
643
+ parent_call_id: "TS",
644
+
645
+ account_id: "TS",
646
+
647
+ from: "TS",
648
+
649
+ to: "TS",
650
+
651
+ phone_number_id: "TS",
652
+
653
+ call_status: Freeclimb::CallStatus::QUEUED,
654
+
655
+ start_time: "TS",
656
+
657
+ connect_time: "TS",
658
+
659
+ end_time: "TS",
660
+
661
+ duration: 1,
662
+
663
+ connect_duration: 1,
664
+
665
+ direction: Freeclimb::CallDirection::INBOUND,
666
+
667
+ answered_by: Freeclimb::AnsweredBy::HUMAN,
668
+
669
+ subresource_uris: Object.new,
670
+
671
+ application_id: "TS"
672
+ )
673
+ instance_2 = Freeclimb::CallResult.new(
674
+ uri: "TS",
675
+
676
+ date_created: "TS",
677
+
678
+ date_updated: "TS",
679
+
680
+ revision: 1,
681
+
682
+ call_id: "TS",
683
+
684
+ parent_call_id: "TS",
685
+
686
+ account_id: "TS",
687
+
688
+ from: "TS",
689
+
690
+ to: "TS",
691
+
692
+ phone_number_id: "TS",
693
+
694
+ call_status: Freeclimb::CallStatus::QUEUED,
695
+
696
+ start_time: "TS",
697
+
698
+ connect_time: "TS",
699
+
700
+ end_time: "TS",
701
+
702
+ duration: 1,
703
+
704
+ connect_duration: 1,
705
+
706
+ direction: Freeclimb::CallDirection::INBOUND,
707
+
708
+ answered_by: Freeclimb::AnsweredBy::HUMAN,
709
+
710
+ subresource_uris: Object.new,
711
+
712
+ application_id: "TS"
713
+ )
714
+
715
+ expect(instance_2.build_from_hash(instance_1.hash)).to eq(instance_1.build_from_hash(instance_1.hash))
716
+ end
717
+ end
718
+
719
+ describe 'test method "_deserialize"' do
720
+ instance = Freeclimb::CallResult.new(
721
+ uri: "TS",
722
+
723
+ date_created: "TS",
724
+
725
+ date_updated: "TS",
726
+
727
+ revision: 1,
728
+
729
+ call_id: "TS",
730
+
731
+ parent_call_id: "TS",
732
+
733
+ account_id: "TS",
734
+
735
+ from: "TS",
736
+
737
+ to: "TS",
738
+
739
+ phone_number_id: "TS",
740
+
741
+ call_status: Freeclimb::CallStatus::QUEUED,
742
+
743
+ start_time: "TS",
744
+
745
+ connect_time: "TS",
746
+
747
+ end_time: "TS",
748
+
749
+ duration: 1,
750
+
751
+ connect_duration: 1,
752
+
753
+ direction: Freeclimb::CallDirection::INBOUND,
754
+
755
+ answered_by: Freeclimb::AnsweredBy::HUMAN,
756
+
757
+ subresource_uris: Object.new,
758
+
759
+ application_id: "TS"
1544
760
  )
1545
- it 'deserializes the data of uri' do
761
+ it "deserializes the data of uri" do
1546
762
  expect(instance._deserialize("String", instance.uri)).to be_a_kind_of(String)
1547
763
  end
1548
-
1549
-
1550
- it 'deserializes the data of date_created' do
764
+
765
+ it "deserializes the data of date_created" do
1551
766
  expect(instance._deserialize("String", instance.date_created)).to be_a_kind_of(String)
1552
767
  end
1553
-
1554
-
1555
- it 'deserializes the data of date_updated' do
768
+
769
+ it "deserializes the data of date_updated" do
1556
770
  expect(instance._deserialize("String", instance.date_updated)).to be_a_kind_of(String)
1557
771
  end
1558
-
1559
-
1560
- it 'deserializes the data of revision' do
772
+
773
+ it "deserializes the data of revision" do
1561
774
  expect(instance._deserialize("Integer", instance.revision)).to be_a_kind_of(Integer)
1562
775
  end
1563
-
1564
-
1565
- it 'deserializes the data of call_id' do
776
+
777
+ it "deserializes the data of call_id" do
1566
778
  expect(instance._deserialize("String", instance.call_id)).to be_a_kind_of(String)
1567
779
  end
1568
-
1569
-
1570
- it 'deserializes the data of parent_call_id' do
780
+
781
+ it "deserializes the data of parent_call_id" do
1571
782
  expect(instance._deserialize("String", instance.parent_call_id)).to be_a_kind_of(String)
1572
783
  end
1573
-
1574
-
1575
- it 'deserializes the data of account_id' do
784
+
785
+ it "deserializes the data of account_id" do
1576
786
  expect(instance._deserialize("String", instance.account_id)).to be_a_kind_of(String)
1577
787
  end
1578
-
1579
-
1580
- it 'deserializes the data of from' do
788
+
789
+ it "deserializes the data of from" do
1581
790
  expect(instance._deserialize("String", instance.from)).to be_a_kind_of(String)
1582
791
  end
1583
-
1584
-
1585
- it 'deserializes the data of to' do
792
+
793
+ it "deserializes the data of to" do
1586
794
  expect(instance._deserialize("String", instance.to)).to be_a_kind_of(String)
1587
795
  end
1588
-
1589
-
1590
- it 'deserializes the data of phone_number_id' do
796
+
797
+ it "deserializes the data of phone_number_id" do
1591
798
  expect(instance._deserialize("String", instance.phone_number_id)).to be_a_kind_of(String)
1592
799
  end
1593
-
1594
-
1595
-
1596
-
1597
- it 'deserializes the data of start_time' do
800
+
801
+ it "deserializes the data of start_time" do
1598
802
  expect(instance._deserialize("String", instance.start_time)).to be_a_kind_of(String)
1599
803
  end
1600
-
1601
-
1602
- it 'deserializes the data of connect_time' do
804
+
805
+ it "deserializes the data of connect_time" do
1603
806
  expect(instance._deserialize("String", instance.connect_time)).to be_a_kind_of(String)
1604
807
  end
1605
-
1606
-
1607
- it 'deserializes the data of end_time' do
808
+
809
+ it "deserializes the data of end_time" do
1608
810
  expect(instance._deserialize("String", instance.end_time)).to be_a_kind_of(String)
1609
811
  end
1610
-
1611
-
1612
- it 'deserializes the data of duration' do
812
+
813
+ it "deserializes the data of duration" do
1613
814
  expect(instance._deserialize("Integer", instance.duration)).to be_a_kind_of(Integer)
1614
815
  end
1615
-
1616
-
1617
- it 'deserializes the data of connect_duration' do
816
+
817
+ it "deserializes the data of connect_duration" do
1618
818
  expect(instance._deserialize("Integer", instance.connect_duration)).to be_a_kind_of(Integer)
1619
819
  end
1620
-
1621
-
1622
-
1623
-
1624
-
1625
-
1626
-
1627
-
1628
- it 'deserializes the data of subresource_uris' do
820
+
821
+ it "deserializes the data of subresource_uris" do
1629
822
  expect(instance._deserialize("Object", instance.subresource_uris)).to be_a_kind_of(Object)
1630
823
  end
1631
-
1632
- it 'deserializes the data of application_id' do
824
+
825
+ it "deserializes the data of application_id" do
1633
826
  expect(instance._deserialize("String", instance.application_id)).to be_a_kind_of(String)
1634
827
  end
1635
-
1636
-
1637
828
  end
1638
829
 
1639
830
  describe 'test method "to_s"' do
1640
- it 'returns the string representation of the object' do
831
+ it "returns the string representation of the object" do
1641
832
  instance = Freeclimb::CallResult.new(
1642
-
1643
833
  uri: "TS",
1644
-
1645
-
1646
-
1647
-
834
+
1648
835
  date_created: "TS",
1649
-
1650
-
1651
-
1652
-
836
+
1653
837
  date_updated: "TS",
1654
-
1655
-
1656
-
838
+
1657
839
  revision: 1,
1658
-
1659
-
1660
-
1661
-
840
+
1662
841
  call_id: "TS",
1663
-
1664
-
1665
-
1666
-
842
+
1667
843
  parent_call_id: "TS",
1668
-
1669
-
1670
-
1671
-
844
+
1672
845
  account_id: "TS",
1673
-
1674
-
1675
-
1676
-
846
+
1677
847
  from: "TS",
1678
-
1679
-
1680
-
1681
-
848
+
1682
849
  to: "TS",
1683
-
1684
-
1685
-
1686
-
850
+
1687
851
  phone_number_id: "TS",
1688
-
1689
-
1690
-
1691
-
852
+
1692
853
  call_status: Freeclimb::CallStatus::QUEUED,
1693
-
1694
-
1695
-
1696
-
854
+
1697
855
  start_time: "TS",
1698
-
1699
-
1700
-
1701
-
856
+
1702
857
  connect_time: "TS",
1703
-
1704
-
1705
-
1706
-
858
+
1707
859
  end_time: "TS",
1708
-
1709
-
1710
-
860
+
1711
861
  duration: 1,
1712
-
1713
-
1714
-
862
+
1715
863
  connect_duration: 1,
1716
-
1717
-
1718
-
1719
-
864
+
1720
865
  direction: Freeclimb::CallDirection::INBOUND,
1721
-
1722
-
1723
-
1724
-
866
+
1725
867
  answered_by: Freeclimb::AnsweredBy::HUMAN,
1726
-
1727
-
1728
-
1729
-
1730
-
1731
-
868
+
1732
869
  subresource_uris: Object.new,
1733
-
1734
-
1735
- application_id: "TS",
1736
-
1737
-
1738
-
870
+
871
+ application_id: "TS"
1739
872
  )
1740
873
  expect(instance.to_s).to eq(instance.to_hash.to_s)
1741
874
  end
1742
875
  end
1743
876
 
1744
877
  describe 'test method "to_hash"' do
1745
- it 'returns the object in the form of hash' do
878
+ it "returns the object in the form of hash" do
1746
879
  instance = Freeclimb::CallResult.new(
1747
-
1748
880
  uri: "TS",
1749
-
1750
-
1751
-
1752
-
881
+
1753
882
  date_created: "TS",
1754
-
1755
-
1756
-
1757
-
883
+
1758
884
  date_updated: "TS",
1759
-
1760
-
1761
-
885
+
1762
886
  revision: 1,
1763
-
1764
-
1765
-
1766
-
887
+
1767
888
  call_id: "TS",
1768
-
1769
-
1770
-
1771
-
889
+
1772
890
  parent_call_id: "TS",
1773
-
1774
-
1775
-
1776
-
891
+
1777
892
  account_id: "TS",
1778
-
1779
-
1780
-
1781
-
893
+
1782
894
  from: "TS",
1783
-
1784
-
1785
-
1786
-
895
+
1787
896
  to: "TS",
1788
-
1789
-
1790
-
1791
-
897
+
1792
898
  phone_number_id: "TS",
1793
-
1794
-
1795
-
1796
-
899
+
1797
900
  call_status: Freeclimb::CallStatus::QUEUED,
1798
-
1799
-
1800
-
1801
-
901
+
1802
902
  start_time: "TS",
1803
-
1804
-
1805
-
1806
-
903
+
1807
904
  connect_time: "TS",
1808
-
1809
-
1810
-
1811
-
905
+
1812
906
  end_time: "TS",
1813
-
1814
-
1815
-
907
+
1816
908
  duration: 1,
1817
-
1818
-
1819
-
909
+
1820
910
  connect_duration: 1,
1821
-
1822
-
1823
-
1824
-
911
+
1825
912
  direction: Freeclimb::CallDirection::INBOUND,
1826
-
1827
-
1828
-
1829
-
913
+
1830
914
  answered_by: Freeclimb::AnsweredBy::HUMAN,
1831
-
1832
-
1833
-
1834
-
1835
-
1836
-
915
+
1837
916
  subresource_uris: Object.new,
1838
-
1839
-
1840
- application_id: "TS",
1841
-
1842
-
1843
-
917
+
918
+ application_id: "TS"
1844
919
  )
1845
920
  expect(instance.to_hash).to be_a_kind_of(Hash)
1846
921
  end
1847
- it 'creates equal hash for two equal objects' do
1848
-
1849
-
1850
-
1851
-
1852
-
1853
-
1854
-
1855
-
1856
-
1857
-
1858
-
1859
-
1860
-
1861
-
1862
-
1863
-
1864
-
1865
-
1866
-
1867
- obj = Object.new()
1868
-
1869
-
922
+ it "creates equal hash for two equal objects" do
923
+ obj = Object.new
924
+
1870
925
  instance_1 = Freeclimb::CallResult.new(
1871
-
1872
926
  uri: "TS",
1873
-
1874
-
1875
-
1876
-
927
+
1877
928
  date_created: "TS",
1878
-
1879
-
1880
-
1881
-
929
+
1882
930
  date_updated: "TS",
1883
-
1884
-
1885
-
931
+
1886
932
  revision: 1,
1887
-
1888
-
1889
-
1890
-
933
+
1891
934
  call_id: "TS",
1892
-
1893
-
1894
-
1895
-
935
+
1896
936
  parent_call_id: "TS",
1897
-
1898
-
1899
-
1900
-
937
+
1901
938
  account_id: "TS",
1902
-
1903
-
1904
-
1905
-
939
+
1906
940
  from: "TS",
1907
-
1908
-
1909
-
1910
-
941
+
1911
942
  to: "TS",
1912
-
1913
-
1914
-
1915
-
943
+
1916
944
  phone_number_id: "TS",
1917
-
1918
-
1919
-
1920
-
945
+
1921
946
  call_status: Freeclimb::CallStatus::QUEUED,
1922
-
1923
-
1924
-
1925
-
947
+
1926
948
  start_time: "TS",
1927
-
1928
-
1929
-
1930
-
949
+
1931
950
  connect_time: "TS",
1932
-
1933
-
1934
-
1935
-
951
+
1936
952
  end_time: "TS",
1937
-
1938
-
1939
-
953
+
1940
954
  duration: 1,
1941
-
1942
-
1943
-
955
+
1944
956
  connect_duration: 1,
1945
-
1946
-
1947
-
1948
-
957
+
1949
958
  direction: Freeclimb::CallDirection::INBOUND,
1950
-
1951
-
1952
-
1953
-
959
+
1954
960
  answered_by: Freeclimb::AnsweredBy::HUMAN,
1955
-
1956
-
1957
-
1958
-
1959
-
1960
-
961
+
1961
962
  subresource_uris: obj,
1962
-
1963
-
1964
- application_id: "TS",
1965
-
1966
-
1967
-
963
+
964
+ application_id: "TS"
1968
965
  )
1969
966
  instance_2 = Freeclimb::CallResult.new(
1970
-
1971
967
  uri: "TS",
1972
-
1973
-
1974
-
1975
-
968
+
1976
969
  date_created: "TS",
1977
-
1978
-
1979
-
1980
-
970
+
1981
971
  date_updated: "TS",
1982
-
1983
-
1984
-
972
+
1985
973
  revision: 1,
1986
-
1987
-
1988
-
1989
-
974
+
1990
975
  call_id: "TS",
1991
-
1992
-
1993
-
1994
-
976
+
1995
977
  parent_call_id: "TS",
1996
-
1997
-
1998
-
1999
-
978
+
2000
979
  account_id: "TS",
2001
-
2002
-
2003
-
2004
-
980
+
2005
981
  from: "TS",
2006
-
2007
-
2008
-
2009
-
982
+
2010
983
  to: "TS",
2011
-
2012
-
2013
-
2014
-
984
+
2015
985
  phone_number_id: "TS",
2016
-
2017
-
2018
-
2019
-
986
+
2020
987
  call_status: Freeclimb::CallStatus::QUEUED,
2021
-
2022
-
2023
-
2024
-
988
+
2025
989
  start_time: "TS",
2026
-
2027
-
2028
-
2029
-
990
+
2030
991
  connect_time: "TS",
2031
-
2032
-
2033
-
2034
-
992
+
2035
993
  end_time: "TS",
2036
-
2037
-
2038
-
994
+
2039
995
  duration: 1,
2040
-
2041
-
2042
-
996
+
2043
997
  connect_duration: 1,
2044
-
2045
-
2046
-
2047
-
998
+
2048
999
  direction: Freeclimb::CallDirection::INBOUND,
2049
-
2050
-
2051
-
2052
-
1000
+
2053
1001
  answered_by: Freeclimb::AnsweredBy::HUMAN,
2054
-
2055
-
2056
-
2057
-
2058
-
2059
-
1002
+
2060
1003
  subresource_uris: obj,
2061
-
2062
-
2063
- application_id: "TS",
2064
-
2065
-
2066
-
1004
+
1005
+ application_id: "TS"
2067
1006
  )
2068
1007
  expect(instance_1.to_hash).to eq(instance_2.to_hash)
2069
1008
  end
@@ -2071,141 +1010,103 @@ describe Freeclimb::CallResult do
2071
1010
 
2072
1011
  describe 'test method "_to_hash"' do
2073
1012
  instance = Freeclimb::CallResult.new(
2074
-
2075
- uri: "TS",
2076
-
2077
-
2078
-
2079
- date_created: "TS",
2080
-
2081
-
2082
-
2083
- date_updated: "TS",
2084
-
2085
-
2086
- revision: 1,
2087
-
2088
-
2089
-
2090
- call_id: "TS",
2091
-
2092
-
2093
-
2094
- parent_call_id: "TS",
2095
-
2096
-
2097
-
2098
- account_id: "TS",
2099
-
2100
-
2101
-
2102
- from: "TS",
2103
-
2104
-
2105
-
2106
- to: "TS",
2107
-
2108
-
2109
-
2110
- phone_number_id: "TS",
2111
-
2112
-
2113
-
2114
- call_status: Freeclimb::CallStatus::QUEUED,
2115
-
2116
-
2117
-
2118
- start_time: "TS",
2119
-
2120
-
2121
-
2122
- connect_time: "TS",
2123
-
2124
-
2125
-
2126
- end_time: "TS",
2127
-
2128
-
2129
- duration: 1,
2130
-
2131
-
2132
- connect_duration: 1,
2133
-
2134
-
2135
-
2136
- direction: Freeclimb::CallDirection::INBOUND,
2137
-
2138
-
2139
-
2140
- answered_by: Freeclimb::AnsweredBy::HUMAN,
2141
-
2142
-
2143
-
2144
-
2145
-
2146
- application_id: "TS",
2147
-
2148
- )
2149
- it 'returns uri in the form of hash' do
1013
+ uri: "TS",
1014
+
1015
+ date_created: "TS",
1016
+
1017
+ date_updated: "TS",
1018
+
1019
+ revision: 1,
1020
+
1021
+ call_id: "TS",
1022
+
1023
+ parent_call_id: "TS",
1024
+
1025
+ account_id: "TS",
1026
+
1027
+ from: "TS",
1028
+
1029
+ to: "TS",
1030
+
1031
+ phone_number_id: "TS",
1032
+
1033
+ call_status: Freeclimb::CallStatus::QUEUED,
1034
+
1035
+ start_time: "TS",
1036
+
1037
+ connect_time: "TS",
1038
+
1039
+ end_time: "TS",
1040
+
1041
+ duration: 1,
1042
+
1043
+ connect_duration: 1,
1044
+
1045
+ direction: Freeclimb::CallDirection::INBOUND,
1046
+
1047
+ answered_by: Freeclimb::AnsweredBy::HUMAN,
1048
+
1049
+ application_id: "TS"
1050
+ )
1051
+ it "returns uri in the form of hash" do
2150
1052
  expect(instance._to_hash(instance.uri)).to eq(instance.uri)
2151
1053
  end
2152
- it 'returns date_created in the form of hash' do
1054
+ it "returns date_created in the form of hash" do
2153
1055
  expect(instance._to_hash(instance.date_created)).to eq(instance.date_created)
2154
1056
  end
2155
- it 'returns date_updated in the form of hash' do
1057
+ it "returns date_updated in the form of hash" do
2156
1058
  expect(instance._to_hash(instance.date_updated)).to eq(instance.date_updated)
2157
1059
  end
2158
- it 'returns revision in the form of hash' do
1060
+ it "returns revision in the form of hash" do
2159
1061
  expect(instance._to_hash(instance.revision)).to eq(instance.revision)
2160
1062
  end
2161
- it 'returns call_id in the form of hash' do
1063
+ it "returns call_id in the form of hash" do
2162
1064
  expect(instance._to_hash(instance.call_id)).to eq(instance.call_id)
2163
1065
  end
2164
- it 'returns parent_call_id in the form of hash' do
1066
+ it "returns parent_call_id in the form of hash" do
2165
1067
  expect(instance._to_hash(instance.parent_call_id)).to eq(instance.parent_call_id)
2166
1068
  end
2167
- it 'returns account_id in the form of hash' do
1069
+ it "returns account_id in the form of hash" do
2168
1070
  expect(instance._to_hash(instance.account_id)).to eq(instance.account_id)
2169
1071
  end
2170
- it 'returns from in the form of hash' do
1072
+ it "returns from in the form of hash" do
2171
1073
  expect(instance._to_hash(instance.from)).to eq(instance.from)
2172
1074
  end
2173
- it 'returns to in the form of hash' do
1075
+ it "returns to in the form of hash" do
2174
1076
  expect(instance._to_hash(instance.to)).to eq(instance.to)
2175
1077
  end
2176
- it 'returns phone_number_id in the form of hash' do
1078
+ it "returns phone_number_id in the form of hash" do
2177
1079
  expect(instance._to_hash(instance.phone_number_id)).to eq(instance.phone_number_id)
2178
1080
  end
2179
- it 'returns call_status in the form of hash' do
1081
+ it "returns call_status in the form of hash" do
2180
1082
  expect(instance._to_hash(instance.call_status)).to eq(instance.call_status)
2181
1083
  end
2182
- it 'returns start_time in the form of hash' do
1084
+ it "returns start_time in the form of hash" do
2183
1085
  expect(instance._to_hash(instance.start_time)).to eq(instance.start_time)
2184
1086
  end
2185
- it 'returns connect_time in the form of hash' do
1087
+ it "returns connect_time in the form of hash" do
2186
1088
  expect(instance._to_hash(instance.connect_time)).to eq(instance.connect_time)
2187
1089
  end
2188
- it 'returns end_time in the form of hash' do
1090
+ it "returns end_time in the form of hash" do
2189
1091
  expect(instance._to_hash(instance.end_time)).to eq(instance.end_time)
2190
1092
  end
2191
- it 'returns duration in the form of hash' do
1093
+ it "returns duration in the form of hash" do
2192
1094
  expect(instance._to_hash(instance.duration)).to eq(instance.duration)
2193
1095
  end
2194
- it 'returns connect_duration in the form of hash' do
1096
+ it "returns connect_duration in the form of hash" do
2195
1097
  expect(instance._to_hash(instance.connect_duration)).to eq(instance.connect_duration)
2196
1098
  end
2197
- it 'returns direction in the form of hash' do
1099
+ it "returns direction in the form of hash" do
2198
1100
  expect(instance._to_hash(instance.direction)).to eq(instance.direction)
2199
1101
  end
2200
- it 'returns answered_by in the form of hash' do
1102
+ it "returns answered_by in the form of hash" do
2201
1103
  expect(instance._to_hash(instance.answered_by)).to eq(instance.answered_by)
2202
1104
  end
2203
- it 'returns subresource_uris in the form of hash' do
1105
+ it "returns subresource_uris in the form of hash" do
2204
1106
  expect(instance._to_hash(instance.subresource_uris)).to eq(instance.subresource_uris)
2205
1107
  end
2206
- it 'returns application_id in the form of hash' do
1108
+ it "returns application_id in the form of hash" do
2207
1109
  expect(instance._to_hash(instance.application_id)).to eq(instance.application_id)
2208
1110
  end
2209
1111
  end
2210
-
2211
1112
  end