freeclimb 5.2.0 → 5.4.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.
- checksums.yaml +4 -4
 - data/CHANGELOG.md +22 -2
 - data/Gemfile.lock +3 -3
 - data/README.md +31 -4
 - data/docs/AvailableNumber.md +0 -4
 - data/docs/BlobListResponse.md +32 -0
 - data/docs/BlobResult.md +32 -0
 - data/docs/CallResult.md +2 -2
 - data/docs/CreateBlobRequest.md +22 -0
 - data/docs/CreateConference.md +4 -2
 - data/docs/DefaultApi.md +835 -25
 - data/docs/ExportList.md +32 -0
 - data/docs/ExportOutputType.md +16 -0
 - data/docs/ExportRequest.md +24 -0
 - data/docs/ExportRequestOutput.md +18 -0
 - data/docs/ExportResourceType.md +17 -0
 - data/docs/ExportResult.md +40 -0
 - data/docs/ExportResultOutput.md +18 -0
 - data/docs/ExportStatus.md +21 -0
 - data/docs/IncomingNumberResult.md +0 -4
 - data/docs/ModifyBlobRequest.md +20 -0
 - data/docs/PlatformError.md +24 -0
 - data/docs/ReplaceBlobRequest.md +18 -0
 - data/docs/Say.md +2 -0
 - data/docs/TTSEngine.md +20 -0
 - data/docs/TTSEngineName.md +18 -0
 - data/lib/freeclimb/api/default_api.rb +1032 -12
 - data/lib/freeclimb/models/available_number.rb +1 -23
 - data/lib/freeclimb/models/blob_list_response.rb +303 -0
 - data/lib/freeclimb/models/blob_result.rb +332 -0
 - data/lib/freeclimb/models/call_result.rb +8 -8
 - data/lib/freeclimb/models/create_blob_request.rb +255 -0
 - data/lib/freeclimb/models/create_conference.rb +15 -5
 - data/lib/freeclimb/models/export_list.rb +304 -0
 - data/lib/freeclimb/models/export_output_type.rb +34 -0
 - data/lib/freeclimb/models/export_request.rb +276 -0
 - data/lib/freeclimb/models/export_request_output.rb +243 -0
 - data/lib/freeclimb/models/export_resource_type.rb +35 -0
 - data/lib/freeclimb/models/export_result.rb +405 -0
 - data/lib/freeclimb/models/export_result_output.rb +243 -0
 - data/lib/freeclimb/models/export_status.rb +39 -0
 - data/lib/freeclimb/models/incoming_number_result.rb +1 -23
 - data/lib/freeclimb/models/modify_blob_request.rb +245 -0
 - data/lib/freeclimb/models/platform_error.rb +244 -0
 - data/lib/freeclimb/models/replace_blob_request.rb +221 -0
 - data/lib/freeclimb/models/say.rb +10 -1
 - data/lib/freeclimb/models/tts_engine.rb +250 -0
 - data/lib/freeclimb/models/tts_engine_name.rb +36 -0
 - data/lib/freeclimb/version.rb +1 -1
 - data/lib/freeclimb.rb +16 -0
 - data/openapi.json +1245 -80
 - data/spec/api/default_api_spec.rb +328 -33
 - data/spec/models/account_result_spec.rb +3 -3
 - data/spec/models/available_number_spec.rb +3 -98
 - data/spec/models/blob_list_response_spec.rb +502 -0
 - data/spec/models/blob_result_spec.rb +489 -0
 - data/spec/models/call_result_spec.rb +39 -39
 - data/spec/models/conference_result_spec.rb +3 -3
 - data/spec/models/create_blob_request_spec.rb +273 -0
 - data/spec/models/create_conference_spec.rb +83 -35
 - data/spec/models/export_list_spec.rb +502 -0
 - data/spec/models/export_output_type_spec.rb +43 -0
 - data/spec/models/export_request_output_spec.rb +162 -0
 - data/spec/models/export_request_spec.rb +320 -0
 - data/spec/models/export_resource_type_spec.rb +59 -0
 - data/spec/models/export_result_output_spec.rb +162 -0
 - data/spec/models/export_result_spec.rb +718 -0
 - data/spec/models/export_status_spec.rb +123 -0
 - data/spec/models/incoming_number_result_spec.rb +6 -102
 - data/spec/models/log_result_spec.rb +3 -3
 - data/spec/models/message_result_spec.rb +3 -3
 - data/spec/models/modify_blob_request_spec.rb +226 -0
 - data/spec/models/platform_error_spec.rb +318 -0
 - data/spec/models/queue_result_spec.rb +3 -3
 - data/spec/models/replace_blob_request_spec.rb +176 -0
 - data/spec/models/say_spec.rb +50 -0
 - data/spec/models/sms_ten_dlc_partner_campaign_spec.rb +3 -3
 - data/spec/models/transcribe_utterance_spec.rb +3 -3
 - data/spec/models/tts_engine_name_spec.rb +75 -0
 - data/spec/models/tts_engine_spec.rb +183 -0
 - data/spec/spec_helper.rb +1 -1
 - data/yarn.lock +29 -29
 - metadata +50 -2
 
| 
         @@ -0,0 +1,318 @@ 
     | 
|
| 
      
 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 
     | 
    
         
            +
            #
         
     | 
| 
      
 10 
     | 
    
         
            +
             
     | 
| 
      
 11 
     | 
    
         
            +
            require "spec_helper"
         
     | 
| 
      
 12 
     | 
    
         
            +
            require "json"
         
     | 
| 
      
 13 
     | 
    
         
            +
            require "date"
         
     | 
| 
      
 14 
     | 
    
         
            +
            include Freeclimb
         
     | 
| 
      
 15 
     | 
    
         
            +
             
     | 
| 
      
 16 
     | 
    
         
            +
            # Unit tests for Freeclimb::PlatformError
         
     | 
| 
      
 17 
     | 
    
         
            +
            # Automatically generated by openapi-generator (https://openapi-generator.tech)
         
     | 
| 
      
 18 
     | 
    
         
            +
            # Please update as you see appropriate
         
     | 
| 
      
 19 
     | 
    
         
            +
            describe Freeclimb::PlatformError do
         
     | 
| 
      
 20 
     | 
    
         
            +
              let(:instance) { Freeclimb::PlatformError.new }
         
     | 
| 
      
 21 
     | 
    
         
            +
             
     | 
| 
      
 22 
     | 
    
         
            +
              describe "test an instance of PlatformError" do
         
     | 
| 
      
 23 
     | 
    
         
            +
                it "should create an instance of PlatformError" do
         
     | 
| 
      
 24 
     | 
    
         
            +
                  expect(instance).to be_instance_of(Freeclimb::PlatformError)
         
     | 
| 
      
 25 
     | 
    
         
            +
                end
         
     | 
| 
      
 26 
     | 
    
         
            +
              end
         
     | 
| 
      
 27 
     | 
    
         
            +
             
     | 
| 
      
 28 
     | 
    
         
            +
              describe 'test attribute "code"' do
         
     | 
| 
      
 29 
     | 
    
         
            +
                it "should work" do
         
     | 
| 
      
 30 
     | 
    
         
            +
                  instance.code = 1
         
     | 
| 
      
 31 
     | 
    
         
            +
                  expect(instance.code).to eq(1)
         
     | 
| 
      
 32 
     | 
    
         
            +
                end
         
     | 
| 
      
 33 
     | 
    
         
            +
              end
         
     | 
| 
      
 34 
     | 
    
         
            +
             
     | 
| 
      
 35 
     | 
    
         
            +
              describe 'test attribute "call"' do
         
     | 
| 
      
 36 
     | 
    
         
            +
                it "should work" do
         
     | 
| 
      
 37 
     | 
    
         
            +
                  instance.call = "TEST_STRING"
         
     | 
| 
      
 38 
     | 
    
         
            +
                  expect(instance.call).to eq("TEST_STRING")
         
     | 
| 
      
 39 
     | 
    
         
            +
                end
         
     | 
| 
      
 40 
     | 
    
         
            +
              end
         
     | 
| 
      
 41 
     | 
    
         
            +
             
     | 
| 
      
 42 
     | 
    
         
            +
              describe 'test attribute "url"' do
         
     | 
| 
      
 43 
     | 
    
         
            +
                it "should work" do
         
     | 
| 
      
 44 
     | 
    
         
            +
                  instance.url = "TEST_STRING"
         
     | 
| 
      
 45 
     | 
    
         
            +
                  expect(instance.url).to eq("TEST_STRING")
         
     | 
| 
      
 46 
     | 
    
         
            +
                end
         
     | 
| 
      
 47 
     | 
    
         
            +
              end
         
     | 
| 
      
 48 
     | 
    
         
            +
             
     | 
| 
      
 49 
     | 
    
         
            +
              describe 'test attribute "details"' do
         
     | 
| 
      
 50 
     | 
    
         
            +
                it "should work" do
         
     | 
| 
      
 51 
     | 
    
         
            +
                  testObject = Object.new
         
     | 
| 
      
 52 
     | 
    
         
            +
                  instance.details = testObject
         
     | 
| 
      
 53 
     | 
    
         
            +
                  expect(instance.details).to eq(testObject)
         
     | 
| 
      
 54 
     | 
    
         
            +
             
     | 
| 
      
 55 
     | 
    
         
            +
                  instance.details = Object.new
         
     | 
| 
      
 56 
     | 
    
         
            +
                  expect(instance.details).to be_instance_of(Object)
         
     | 
| 
      
 57 
     | 
    
         
            +
                end
         
     | 
| 
      
 58 
     | 
    
         
            +
              end
         
     | 
| 
      
 59 
     | 
    
         
            +
             
     | 
| 
      
 60 
     | 
    
         
            +
              describe 'test method "initialize"' do
         
     | 
| 
      
 61 
     | 
    
         
            +
                it "properly initializes with values" do
         
     | 
| 
      
 62 
     | 
    
         
            +
                  expect {
         
     | 
| 
      
 63 
     | 
    
         
            +
                    Freeclimb::PlatformError.new(
         
     | 
| 
      
 64 
     | 
    
         
            +
                      code: 1,
         
     | 
| 
      
 65 
     | 
    
         
            +
             
     | 
| 
      
 66 
     | 
    
         
            +
                      call: "TS",
         
     | 
| 
      
 67 
     | 
    
         
            +
             
     | 
| 
      
 68 
     | 
    
         
            +
                      url: "TS",
         
     | 
| 
      
 69 
     | 
    
         
            +
             
     | 
| 
      
 70 
     | 
    
         
            +
                      details: Object.new
         
     | 
| 
      
 71 
     | 
    
         
            +
                    )
         
     | 
| 
      
 72 
     | 
    
         
            +
                  }.not_to raise_error
         
     | 
| 
      
 73 
     | 
    
         
            +
                end
         
     | 
| 
      
 74 
     | 
    
         
            +
                it "fails to initialize with input argument that is not a hash in Freeclimb::PlatformError" do
         
     | 
| 
      
 75 
     | 
    
         
            +
                  expect {
         
     | 
| 
      
 76 
     | 
    
         
            +
                    Freeclimb::PlatformError.new(
         
     | 
| 
      
 77 
     | 
    
         
            +
                      code: 1,
         
     | 
| 
      
 78 
     | 
    
         
            +
             
     | 
| 
      
 79 
     | 
    
         
            +
                      call: "TS",
         
     | 
| 
      
 80 
     | 
    
         
            +
             
     | 
| 
      
 81 
     | 
    
         
            +
                      url: "TS",
         
     | 
| 
      
 82 
     | 
    
         
            +
             
     | 
| 
      
 83 
     | 
    
         
            +
                      details: Object.new,
         
     | 
| 
      
 84 
     | 
    
         
            +
             
     | 
| 
      
 85 
     | 
    
         
            +
                      invalid_attribute: true
         
     | 
| 
      
 86 
     | 
    
         
            +
                    )
         
     | 
| 
      
 87 
     | 
    
         
            +
                  }.to raise_error(ArgumentError)
         
     | 
| 
      
 88 
     | 
    
         
            +
                end
         
     | 
| 
      
 89 
     | 
    
         
            +
                it "fails to initialize with invalid attribute" do
         
     | 
| 
      
 90 
     | 
    
         
            +
                  expect {
         
     | 
| 
      
 91 
     | 
    
         
            +
                    Freeclimb::PlatformError.new(
         
     | 
| 
      
 92 
     | 
    
         
            +
                      code: 1,
         
     | 
| 
      
 93 
     | 
    
         
            +
             
     | 
| 
      
 94 
     | 
    
         
            +
                      call: "TS",
         
     | 
| 
      
 95 
     | 
    
         
            +
             
     | 
| 
      
 96 
     | 
    
         
            +
                      url: "TS",
         
     | 
| 
      
 97 
     | 
    
         
            +
             
     | 
| 
      
 98 
     | 
    
         
            +
                      details: Object.new,
         
     | 
| 
      
 99 
     | 
    
         
            +
             
     | 
| 
      
 100 
     | 
    
         
            +
                      invalid_attribute: true
         
     | 
| 
      
 101 
     | 
    
         
            +
                    )
         
     | 
| 
      
 102 
     | 
    
         
            +
                  }.to raise_error(ArgumentError)
         
     | 
| 
      
 103 
     | 
    
         
            +
                end
         
     | 
| 
      
 104 
     | 
    
         
            +
              end
         
     | 
| 
      
 105 
     | 
    
         
            +
             
     | 
| 
      
 106 
     | 
    
         
            +
              describe 'test method "valid"' do
         
     | 
| 
      
 107 
     | 
    
         
            +
                it "checks if properties are valid" do
         
     | 
| 
      
 108 
     | 
    
         
            +
                  instance = Freeclimb::PlatformError.new(
         
     | 
| 
      
 109 
     | 
    
         
            +
                    code: 1,
         
     | 
| 
      
 110 
     | 
    
         
            +
             
     | 
| 
      
 111 
     | 
    
         
            +
                    call: "TS",
         
     | 
| 
      
 112 
     | 
    
         
            +
             
     | 
| 
      
 113 
     | 
    
         
            +
                    url: "TS",
         
     | 
| 
      
 114 
     | 
    
         
            +
             
     | 
| 
      
 115 
     | 
    
         
            +
                    details: Object.new
         
     | 
| 
      
 116 
     | 
    
         
            +
                  )
         
     | 
| 
      
 117 
     | 
    
         
            +
                  expect(instance.valid?).to eq(true)
         
     | 
| 
      
 118 
     | 
    
         
            +
                end
         
     | 
| 
      
 119 
     | 
    
         
            +
             
     | 
| 
      
 120 
     | 
    
         
            +
                skip "checks if properties are invalid" do
         
     | 
| 
      
 121 
     | 
    
         
            +
                  instance = Freeclimb::PlatformError.new
         
     | 
| 
      
 122 
     | 
    
         
            +
             
     | 
| 
      
 123 
     | 
    
         
            +
                  expect(instance.valid?).to eq(false)
         
     | 
| 
      
 124 
     | 
    
         
            +
                end
         
     | 
| 
      
 125 
     | 
    
         
            +
              end
         
     | 
| 
      
 126 
     | 
    
         
            +
             
     | 
| 
      
 127 
     | 
    
         
            +
              describe 'test method "eql?"' do
         
     | 
| 
      
 128 
     | 
    
         
            +
                it "checks if objects are equal" do
         
     | 
| 
      
 129 
     | 
    
         
            +
                  obj_details = Object.new
         
     | 
| 
      
 130 
     | 
    
         
            +
             
     | 
| 
      
 131 
     | 
    
         
            +
                  instance_1 = Freeclimb::PlatformError.new(
         
     | 
| 
      
 132 
     | 
    
         
            +
                    code: 1,
         
     | 
| 
      
 133 
     | 
    
         
            +
             
     | 
| 
      
 134 
     | 
    
         
            +
                    call: "TS",
         
     | 
| 
      
 135 
     | 
    
         
            +
             
     | 
| 
      
 136 
     | 
    
         
            +
                    url: "TS",
         
     | 
| 
      
 137 
     | 
    
         
            +
             
     | 
| 
      
 138 
     | 
    
         
            +
                    details: obj_details
         
     | 
| 
      
 139 
     | 
    
         
            +
                  )
         
     | 
| 
      
 140 
     | 
    
         
            +
                  instance_2 = Freeclimb::PlatformError.new(
         
     | 
| 
      
 141 
     | 
    
         
            +
                    code: 1,
         
     | 
| 
      
 142 
     | 
    
         
            +
             
     | 
| 
      
 143 
     | 
    
         
            +
                    call: "TS",
         
     | 
| 
      
 144 
     | 
    
         
            +
             
     | 
| 
      
 145 
     | 
    
         
            +
                    url: "TS",
         
     | 
| 
      
 146 
     | 
    
         
            +
             
     | 
| 
      
 147 
     | 
    
         
            +
                    details: obj_details
         
     | 
| 
      
 148 
     | 
    
         
            +
                  )
         
     | 
| 
      
 149 
     | 
    
         
            +
                  expect(instance_1.eql?(instance_2)).to eq(true)
         
     | 
| 
      
 150 
     | 
    
         
            +
                end
         
     | 
| 
      
 151 
     | 
    
         
            +
             
     | 
| 
      
 152 
     | 
    
         
            +
                it "checks if objects are not equal" do
         
     | 
| 
      
 153 
     | 
    
         
            +
                  instance_1 = Freeclimb::PlatformError.new(
         
     | 
| 
      
 154 
     | 
    
         
            +
                    code: 2,
         
     | 
| 
      
 155 
     | 
    
         
            +
             
     | 
| 
      
 156 
     | 
    
         
            +
                    call: "TS",
         
     | 
| 
      
 157 
     | 
    
         
            +
             
     | 
| 
      
 158 
     | 
    
         
            +
                    url: "TS",
         
     | 
| 
      
 159 
     | 
    
         
            +
             
     | 
| 
      
 160 
     | 
    
         
            +
                    details: Object.new,
         
     | 
| 
      
 161 
     | 
    
         
            +
             
     | 
| 
      
 162 
     | 
    
         
            +
                    details: Object.new
         
     | 
| 
      
 163 
     | 
    
         
            +
                  )
         
     | 
| 
      
 164 
     | 
    
         
            +
                  instance_2 = Freeclimb::PlatformError.new(
         
     | 
| 
      
 165 
     | 
    
         
            +
                    code: 1,
         
     | 
| 
      
 166 
     | 
    
         
            +
             
     | 
| 
      
 167 
     | 
    
         
            +
                    call: "ST",
         
     | 
| 
      
 168 
     | 
    
         
            +
             
     | 
| 
      
 169 
     | 
    
         
            +
                    url: "ST",
         
     | 
| 
      
 170 
     | 
    
         
            +
             
     | 
| 
      
 171 
     | 
    
         
            +
                    details: Object.new
         
     | 
| 
      
 172 
     | 
    
         
            +
                  )
         
     | 
| 
      
 173 
     | 
    
         
            +
                  expect(instance_1.eql?(instance_2)).to eq(false)
         
     | 
| 
      
 174 
     | 
    
         
            +
                end
         
     | 
| 
      
 175 
     | 
    
         
            +
              end
         
     | 
| 
      
 176 
     | 
    
         
            +
             
     | 
| 
      
 177 
     | 
    
         
            +
              describe 'test method "hash"' do
         
     | 
| 
      
 178 
     | 
    
         
            +
                it "calculates hash code" do
         
     | 
| 
      
 179 
     | 
    
         
            +
                  instance = Freeclimb::PlatformError.new(
         
     | 
| 
      
 180 
     | 
    
         
            +
                    code: 1,
         
     | 
| 
      
 181 
     | 
    
         
            +
             
     | 
| 
      
 182 
     | 
    
         
            +
                    call: "TS",
         
     | 
| 
      
 183 
     | 
    
         
            +
             
     | 
| 
      
 184 
     | 
    
         
            +
                    url: "TS",
         
     | 
| 
      
 185 
     | 
    
         
            +
             
     | 
| 
      
 186 
     | 
    
         
            +
                    details: Object.new
         
     | 
| 
      
 187 
     | 
    
         
            +
                  )
         
     | 
| 
      
 188 
     | 
    
         
            +
                  expect(instance.hash).to be_a_kind_of(Integer)
         
     | 
| 
      
 189 
     | 
    
         
            +
                end
         
     | 
| 
      
 190 
     | 
    
         
            +
              end
         
     | 
| 
      
 191 
     | 
    
         
            +
             
     | 
| 
      
 192 
     | 
    
         
            +
              describe 'test method "build_from_hash"' do
         
     | 
| 
      
 193 
     | 
    
         
            +
                it "builds equivalent model from hash code" do
         
     | 
| 
      
 194 
     | 
    
         
            +
                  instance_1 = Freeclimb::PlatformError.new(
         
     | 
| 
      
 195 
     | 
    
         
            +
                    code: 1,
         
     | 
| 
      
 196 
     | 
    
         
            +
             
     | 
| 
      
 197 
     | 
    
         
            +
                    call: "TS",
         
     | 
| 
      
 198 
     | 
    
         
            +
             
     | 
| 
      
 199 
     | 
    
         
            +
                    url: "TS",
         
     | 
| 
      
 200 
     | 
    
         
            +
             
     | 
| 
      
 201 
     | 
    
         
            +
                    details: Object.new
         
     | 
| 
      
 202 
     | 
    
         
            +
                  )
         
     | 
| 
      
 203 
     | 
    
         
            +
                  instance_2 = Freeclimb::PlatformError.new(
         
     | 
| 
      
 204 
     | 
    
         
            +
                    code: 1,
         
     | 
| 
      
 205 
     | 
    
         
            +
             
     | 
| 
      
 206 
     | 
    
         
            +
                    call: "TS",
         
     | 
| 
      
 207 
     | 
    
         
            +
             
     | 
| 
      
 208 
     | 
    
         
            +
                    url: "TS",
         
     | 
| 
      
 209 
     | 
    
         
            +
             
     | 
| 
      
 210 
     | 
    
         
            +
                    details: Object.new
         
     | 
| 
      
 211 
     | 
    
         
            +
                  )
         
     | 
| 
      
 212 
     | 
    
         
            +
             
     | 
| 
      
 213 
     | 
    
         
            +
                  expect(instance_2.build_from_hash(instance_1.hash)).to eq(instance_1.build_from_hash(instance_1.hash))
         
     | 
| 
      
 214 
     | 
    
         
            +
                end
         
     | 
| 
      
 215 
     | 
    
         
            +
              end
         
     | 
| 
      
 216 
     | 
    
         
            +
             
     | 
| 
      
 217 
     | 
    
         
            +
              describe 'test method "_deserialize"' do
         
     | 
| 
      
 218 
     | 
    
         
            +
                instance = Freeclimb::PlatformError.new(
         
     | 
| 
      
 219 
     | 
    
         
            +
                  code: 1,
         
     | 
| 
      
 220 
     | 
    
         
            +
             
     | 
| 
      
 221 
     | 
    
         
            +
                  call: "TS",
         
     | 
| 
      
 222 
     | 
    
         
            +
             
     | 
| 
      
 223 
     | 
    
         
            +
                  url: "TS",
         
     | 
| 
      
 224 
     | 
    
         
            +
             
     | 
| 
      
 225 
     | 
    
         
            +
                  details: Object.new
         
     | 
| 
      
 226 
     | 
    
         
            +
                )
         
     | 
| 
      
 227 
     | 
    
         
            +
                it "deserializes the data of code" do
         
     | 
| 
      
 228 
     | 
    
         
            +
                  expect(instance._deserialize("Integer", instance.code)).to be_a_kind_of(Integer)
         
     | 
| 
      
 229 
     | 
    
         
            +
                end
         
     | 
| 
      
 230 
     | 
    
         
            +
             
     | 
| 
      
 231 
     | 
    
         
            +
                it "deserializes the data of call" do
         
     | 
| 
      
 232 
     | 
    
         
            +
                  expect(instance._deserialize("String", instance.call)).to be_a_kind_of(String)
         
     | 
| 
      
 233 
     | 
    
         
            +
                end
         
     | 
| 
      
 234 
     | 
    
         
            +
             
     | 
| 
      
 235 
     | 
    
         
            +
                it "deserializes the data of url" do
         
     | 
| 
      
 236 
     | 
    
         
            +
                  expect(instance._deserialize("String", instance.url)).to be_a_kind_of(String)
         
     | 
| 
      
 237 
     | 
    
         
            +
                end
         
     | 
| 
      
 238 
     | 
    
         
            +
             
     | 
| 
      
 239 
     | 
    
         
            +
                it "deserializes the data of details" do
         
     | 
| 
      
 240 
     | 
    
         
            +
                  expect(instance._deserialize("Object", instance.details)).to be_a_kind_of(Object)
         
     | 
| 
      
 241 
     | 
    
         
            +
                end
         
     | 
| 
      
 242 
     | 
    
         
            +
              end
         
     | 
| 
      
 243 
     | 
    
         
            +
             
     | 
| 
      
 244 
     | 
    
         
            +
              describe 'test method "to_s"' do
         
     | 
| 
      
 245 
     | 
    
         
            +
                it "returns the string representation of the object" do
         
     | 
| 
      
 246 
     | 
    
         
            +
                  instance = Freeclimb::PlatformError.new(
         
     | 
| 
      
 247 
     | 
    
         
            +
                    code: 1,
         
     | 
| 
      
 248 
     | 
    
         
            +
             
     | 
| 
      
 249 
     | 
    
         
            +
                    call: "TS",
         
     | 
| 
      
 250 
     | 
    
         
            +
             
     | 
| 
      
 251 
     | 
    
         
            +
                    url: "TS",
         
     | 
| 
      
 252 
     | 
    
         
            +
             
     | 
| 
      
 253 
     | 
    
         
            +
                    details: Object.new
         
     | 
| 
      
 254 
     | 
    
         
            +
                  )
         
     | 
| 
      
 255 
     | 
    
         
            +
                  expect(instance.to_s).to eq(instance.to_hash.to_s)
         
     | 
| 
      
 256 
     | 
    
         
            +
                end
         
     | 
| 
      
 257 
     | 
    
         
            +
              end
         
     | 
| 
      
 258 
     | 
    
         
            +
             
     | 
| 
      
 259 
     | 
    
         
            +
              describe 'test method "to_hash"' do
         
     | 
| 
      
 260 
     | 
    
         
            +
                it "returns the object in the form of hash" do
         
     | 
| 
      
 261 
     | 
    
         
            +
                  instance = Freeclimb::PlatformError.new(
         
     | 
| 
      
 262 
     | 
    
         
            +
                    code: 1,
         
     | 
| 
      
 263 
     | 
    
         
            +
             
     | 
| 
      
 264 
     | 
    
         
            +
                    call: "TS",
         
     | 
| 
      
 265 
     | 
    
         
            +
             
     | 
| 
      
 266 
     | 
    
         
            +
                    url: "TS",
         
     | 
| 
      
 267 
     | 
    
         
            +
             
     | 
| 
      
 268 
     | 
    
         
            +
                    details: Object.new
         
     | 
| 
      
 269 
     | 
    
         
            +
                  )
         
     | 
| 
      
 270 
     | 
    
         
            +
                  expect(instance.to_hash).to be_a_kind_of(Hash)
         
     | 
| 
      
 271 
     | 
    
         
            +
                end
         
     | 
| 
      
 272 
     | 
    
         
            +
                it "creates equal hash for two equal objects" do
         
     | 
| 
      
 273 
     | 
    
         
            +
                  obj = Object.new
         
     | 
| 
      
 274 
     | 
    
         
            +
             
     | 
| 
      
 275 
     | 
    
         
            +
                  instance_1 = Freeclimb::PlatformError.new(
         
     | 
| 
      
 276 
     | 
    
         
            +
                    code: 1,
         
     | 
| 
      
 277 
     | 
    
         
            +
             
     | 
| 
      
 278 
     | 
    
         
            +
                    call: "TS",
         
     | 
| 
      
 279 
     | 
    
         
            +
             
     | 
| 
      
 280 
     | 
    
         
            +
                    url: "TS",
         
     | 
| 
      
 281 
     | 
    
         
            +
             
     | 
| 
      
 282 
     | 
    
         
            +
                    details: obj
         
     | 
| 
      
 283 
     | 
    
         
            +
                  )
         
     | 
| 
      
 284 
     | 
    
         
            +
                  instance_2 = Freeclimb::PlatformError.new(
         
     | 
| 
      
 285 
     | 
    
         
            +
                    code: 1,
         
     | 
| 
      
 286 
     | 
    
         
            +
             
     | 
| 
      
 287 
     | 
    
         
            +
                    call: "TS",
         
     | 
| 
      
 288 
     | 
    
         
            +
             
     | 
| 
      
 289 
     | 
    
         
            +
                    url: "TS",
         
     | 
| 
      
 290 
     | 
    
         
            +
             
     | 
| 
      
 291 
     | 
    
         
            +
                    details: obj
         
     | 
| 
      
 292 
     | 
    
         
            +
                  )
         
     | 
| 
      
 293 
     | 
    
         
            +
                  expect(instance_1.to_hash).to eq(instance_2.to_hash)
         
     | 
| 
      
 294 
     | 
    
         
            +
                end
         
     | 
| 
      
 295 
     | 
    
         
            +
              end
         
     | 
| 
      
 296 
     | 
    
         
            +
             
     | 
| 
      
 297 
     | 
    
         
            +
              describe 'test method "_to_hash"' do
         
     | 
| 
      
 298 
     | 
    
         
            +
                instance = Freeclimb::PlatformError.new(
         
     | 
| 
      
 299 
     | 
    
         
            +
                  code: 1,
         
     | 
| 
      
 300 
     | 
    
         
            +
             
     | 
| 
      
 301 
     | 
    
         
            +
                  call: "TS",
         
     | 
| 
      
 302 
     | 
    
         
            +
             
     | 
| 
      
 303 
     | 
    
         
            +
                  url: "TS"
         
     | 
| 
      
 304 
     | 
    
         
            +
                )
         
     | 
| 
      
 305 
     | 
    
         
            +
                it "returns code in the form of hash" do
         
     | 
| 
      
 306 
     | 
    
         
            +
                  expect(instance._to_hash(instance.code)).to eq(instance.code)
         
     | 
| 
      
 307 
     | 
    
         
            +
                end
         
     | 
| 
      
 308 
     | 
    
         
            +
                it "returns call in the form of hash" do
         
     | 
| 
      
 309 
     | 
    
         
            +
                  expect(instance._to_hash(instance.call)).to eq(instance.call)
         
     | 
| 
      
 310 
     | 
    
         
            +
                end
         
     | 
| 
      
 311 
     | 
    
         
            +
                it "returns url in the form of hash" do
         
     | 
| 
      
 312 
     | 
    
         
            +
                  expect(instance._to_hash(instance.url)).to eq(instance.url)
         
     | 
| 
      
 313 
     | 
    
         
            +
                end
         
     | 
| 
      
 314 
     | 
    
         
            +
                it "returns details in the form of hash" do
         
     | 
| 
      
 315 
     | 
    
         
            +
                  expect(instance._to_hash(instance.details)).to eq(instance.details)
         
     | 
| 
      
 316 
     | 
    
         
            +
                end
         
     | 
| 
      
 317 
     | 
    
         
            +
              end
         
     | 
| 
      
 318 
     | 
    
         
            +
            end
         
     | 
| 
         @@ -231,7 +231,7 @@ describe Freeclimb::QueueResult do 
     | 
|
| 
       231 
231 
     | 
    
         | 
| 
       232 
232 
     | 
    
         
             
              describe 'test method "eql?"' do
         
     | 
| 
       233 
233 
     | 
    
         
             
                it "checks if objects are equal" do
         
     | 
| 
       234 
     | 
    
         
            -
                   
     | 
| 
      
 234 
     | 
    
         
            +
                  obj_subresource_uris = Object.new
         
     | 
| 
       235 
235 
     | 
    
         | 
| 
       236 
236 
     | 
    
         
             
                  instance_1 = Freeclimb::QueueResult.new(
         
     | 
| 
       237 
237 
     | 
    
         
             
                    uri: "TS",
         
     | 
| 
         @@ -254,7 +254,7 @@ describe Freeclimb::QueueResult do 
     | 
|
| 
       254 
254 
     | 
    
         | 
| 
       255 
255 
     | 
    
         
             
                    average_queue_removal_time: 1,
         
     | 
| 
       256 
256 
     | 
    
         | 
| 
       257 
     | 
    
         
            -
                    subresource_uris:  
     | 
| 
      
 257 
     | 
    
         
            +
                    subresource_uris: obj_subresource_uris
         
     | 
| 
       258 
258 
     | 
    
         
             
                  )
         
     | 
| 
       259 
259 
     | 
    
         
             
                  instance_2 = Freeclimb::QueueResult.new(
         
     | 
| 
       260 
260 
     | 
    
         
             
                    uri: "TS",
         
     | 
| 
         @@ -277,7 +277,7 @@ describe Freeclimb::QueueResult do 
     | 
|
| 
       277 
277 
     | 
    
         | 
| 
       278 
278 
     | 
    
         
             
                    average_queue_removal_time: 1,
         
     | 
| 
       279 
279 
     | 
    
         | 
| 
       280 
     | 
    
         
            -
                    subresource_uris:  
     | 
| 
      
 280 
     | 
    
         
            +
                    subresource_uris: obj_subresource_uris
         
     | 
| 
       281 
281 
     | 
    
         
             
                  )
         
     | 
| 
       282 
282 
     | 
    
         
             
                  expect(instance_1.eql?(instance_2)).to eq(true)
         
     | 
| 
       283 
283 
     | 
    
         
             
                end
         
     | 
| 
         @@ -0,0 +1,176 @@ 
     | 
|
| 
      
 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 
     | 
    
         
            +
            #
         
     | 
| 
      
 10 
     | 
    
         
            +
             
     | 
| 
      
 11 
     | 
    
         
            +
            require "spec_helper"
         
     | 
| 
      
 12 
     | 
    
         
            +
            require "json"
         
     | 
| 
      
 13 
     | 
    
         
            +
            require "date"
         
     | 
| 
      
 14 
     | 
    
         
            +
            include Freeclimb
         
     | 
| 
      
 15 
     | 
    
         
            +
             
     | 
| 
      
 16 
     | 
    
         
            +
            # Unit tests for Freeclimb::ReplaceBlobRequest
         
     | 
| 
      
 17 
     | 
    
         
            +
            # Automatically generated by openapi-generator (https://openapi-generator.tech)
         
     | 
| 
      
 18 
     | 
    
         
            +
            # Please update as you see appropriate
         
     | 
| 
      
 19 
     | 
    
         
            +
            describe Freeclimb::ReplaceBlobRequest do
         
     | 
| 
      
 20 
     | 
    
         
            +
              let(:instance) { Freeclimb::ReplaceBlobRequest.new }
         
     | 
| 
      
 21 
     | 
    
         
            +
             
     | 
| 
      
 22 
     | 
    
         
            +
              describe "test an instance of ReplaceBlobRequest" do
         
     | 
| 
      
 23 
     | 
    
         
            +
                it "should create an instance of ReplaceBlobRequest" do
         
     | 
| 
      
 24 
     | 
    
         
            +
                  expect(instance).to be_instance_of(Freeclimb::ReplaceBlobRequest)
         
     | 
| 
      
 25 
     | 
    
         
            +
                end
         
     | 
| 
      
 26 
     | 
    
         
            +
              end
         
     | 
| 
      
 27 
     | 
    
         
            +
             
     | 
| 
      
 28 
     | 
    
         
            +
              describe 'test attribute "blob"' do
         
     | 
| 
      
 29 
     | 
    
         
            +
                it "should work" do
         
     | 
| 
      
 30 
     | 
    
         
            +
                  testObject = Object.new
         
     | 
| 
      
 31 
     | 
    
         
            +
                  instance.blob = testObject
         
     | 
| 
      
 32 
     | 
    
         
            +
                  expect(instance.blob).to eq(testObject)
         
     | 
| 
      
 33 
     | 
    
         
            +
             
     | 
| 
      
 34 
     | 
    
         
            +
                  instance.blob = Object.new
         
     | 
| 
      
 35 
     | 
    
         
            +
                  expect(instance.blob).to be_instance_of(Object)
         
     | 
| 
      
 36 
     | 
    
         
            +
                end
         
     | 
| 
      
 37 
     | 
    
         
            +
              end
         
     | 
| 
      
 38 
     | 
    
         
            +
             
     | 
| 
      
 39 
     | 
    
         
            +
              describe 'test method "initialize"' do
         
     | 
| 
      
 40 
     | 
    
         
            +
                it "properly initializes with values" do
         
     | 
| 
      
 41 
     | 
    
         
            +
                  expect {
         
     | 
| 
      
 42 
     | 
    
         
            +
                    Freeclimb::ReplaceBlobRequest.new(
         
     | 
| 
      
 43 
     | 
    
         
            +
                      blob: Object.new
         
     | 
| 
      
 44 
     | 
    
         
            +
                    )
         
     | 
| 
      
 45 
     | 
    
         
            +
                  }.not_to raise_error
         
     | 
| 
      
 46 
     | 
    
         
            +
                end
         
     | 
| 
      
 47 
     | 
    
         
            +
                it "fails to initialize with input argument that is not a hash in Freeclimb::ReplaceBlobRequest" do
         
     | 
| 
      
 48 
     | 
    
         
            +
                  expect {
         
     | 
| 
      
 49 
     | 
    
         
            +
                    Freeclimb::ReplaceBlobRequest.new(
         
     | 
| 
      
 50 
     | 
    
         
            +
                      blob: Object.new,
         
     | 
| 
      
 51 
     | 
    
         
            +
             
     | 
| 
      
 52 
     | 
    
         
            +
                      invalid_attribute: true
         
     | 
| 
      
 53 
     | 
    
         
            +
                    )
         
     | 
| 
      
 54 
     | 
    
         
            +
                  }.to raise_error(ArgumentError)
         
     | 
| 
      
 55 
     | 
    
         
            +
                end
         
     | 
| 
      
 56 
     | 
    
         
            +
                it "fails to initialize with invalid attribute" do
         
     | 
| 
      
 57 
     | 
    
         
            +
                  expect {
         
     | 
| 
      
 58 
     | 
    
         
            +
                    Freeclimb::ReplaceBlobRequest.new(
         
     | 
| 
      
 59 
     | 
    
         
            +
                      blob: Object.new,
         
     | 
| 
      
 60 
     | 
    
         
            +
             
     | 
| 
      
 61 
     | 
    
         
            +
                      invalid_attribute: true
         
     | 
| 
      
 62 
     | 
    
         
            +
                    )
         
     | 
| 
      
 63 
     | 
    
         
            +
                  }.to raise_error(ArgumentError)
         
     | 
| 
      
 64 
     | 
    
         
            +
                end
         
     | 
| 
      
 65 
     | 
    
         
            +
              end
         
     | 
| 
      
 66 
     | 
    
         
            +
             
     | 
| 
      
 67 
     | 
    
         
            +
              describe 'test method "valid"' do
         
     | 
| 
      
 68 
     | 
    
         
            +
                it "checks if properties are valid" do
         
     | 
| 
      
 69 
     | 
    
         
            +
                  instance = Freeclimb::ReplaceBlobRequest.new(
         
     | 
| 
      
 70 
     | 
    
         
            +
                    blob: Object.new
         
     | 
| 
      
 71 
     | 
    
         
            +
                  )
         
     | 
| 
      
 72 
     | 
    
         
            +
                  expect(instance.valid?).to eq(true)
         
     | 
| 
      
 73 
     | 
    
         
            +
                end
         
     | 
| 
      
 74 
     | 
    
         
            +
             
     | 
| 
      
 75 
     | 
    
         
            +
                skip "checks if properties are invalid" do
         
     | 
| 
      
 76 
     | 
    
         
            +
                  instance = Freeclimb::ReplaceBlobRequest.new
         
     | 
| 
      
 77 
     | 
    
         
            +
             
     | 
| 
      
 78 
     | 
    
         
            +
                  expect(instance.valid?).to eq(false)
         
     | 
| 
      
 79 
     | 
    
         
            +
                end
         
     | 
| 
      
 80 
     | 
    
         
            +
              end
         
     | 
| 
      
 81 
     | 
    
         
            +
             
     | 
| 
      
 82 
     | 
    
         
            +
              describe 'test method "eql?"' do
         
     | 
| 
      
 83 
     | 
    
         
            +
                it "checks if objects are equal" do
         
     | 
| 
      
 84 
     | 
    
         
            +
                  obj_blob = Object.new
         
     | 
| 
      
 85 
     | 
    
         
            +
             
     | 
| 
      
 86 
     | 
    
         
            +
                  instance_1 = Freeclimb::ReplaceBlobRequest.new(
         
     | 
| 
      
 87 
     | 
    
         
            +
                    blob: obj_blob
         
     | 
| 
      
 88 
     | 
    
         
            +
                  )
         
     | 
| 
      
 89 
     | 
    
         
            +
                  instance_2 = Freeclimb::ReplaceBlobRequest.new(
         
     | 
| 
      
 90 
     | 
    
         
            +
                    blob: obj_blob
         
     | 
| 
      
 91 
     | 
    
         
            +
                  )
         
     | 
| 
      
 92 
     | 
    
         
            +
                  expect(instance_1.eql?(instance_2)).to eq(true)
         
     | 
| 
      
 93 
     | 
    
         
            +
                end
         
     | 
| 
      
 94 
     | 
    
         
            +
             
     | 
| 
      
 95 
     | 
    
         
            +
                it "checks if objects are not equal" do
         
     | 
| 
      
 96 
     | 
    
         
            +
                  instance_1 = Freeclimb::ReplaceBlobRequest.new(
         
     | 
| 
      
 97 
     | 
    
         
            +
                    blob: Object.new,
         
     | 
| 
      
 98 
     | 
    
         
            +
             
     | 
| 
      
 99 
     | 
    
         
            +
                    blob: Object.new
         
     | 
| 
      
 100 
     | 
    
         
            +
                  )
         
     | 
| 
      
 101 
     | 
    
         
            +
                  instance_2 = Freeclimb::ReplaceBlobRequest.new(
         
     | 
| 
      
 102 
     | 
    
         
            +
                    blob: Object.new
         
     | 
| 
      
 103 
     | 
    
         
            +
                  )
         
     | 
| 
      
 104 
     | 
    
         
            +
                  expect(instance_1.eql?(instance_2)).to eq(false)
         
     | 
| 
      
 105 
     | 
    
         
            +
                end
         
     | 
| 
      
 106 
     | 
    
         
            +
              end
         
     | 
| 
      
 107 
     | 
    
         
            +
             
     | 
| 
      
 108 
     | 
    
         
            +
              describe 'test method "hash"' do
         
     | 
| 
      
 109 
     | 
    
         
            +
                it "calculates hash code" do
         
     | 
| 
      
 110 
     | 
    
         
            +
                  instance = Freeclimb::ReplaceBlobRequest.new(
         
     | 
| 
      
 111 
     | 
    
         
            +
                    blob: Object.new
         
     | 
| 
      
 112 
     | 
    
         
            +
                  )
         
     | 
| 
      
 113 
     | 
    
         
            +
                  expect(instance.hash).to be_a_kind_of(Integer)
         
     | 
| 
      
 114 
     | 
    
         
            +
                end
         
     | 
| 
      
 115 
     | 
    
         
            +
              end
         
     | 
| 
      
 116 
     | 
    
         
            +
             
     | 
| 
      
 117 
     | 
    
         
            +
              describe 'test method "build_from_hash"' do
         
     | 
| 
      
 118 
     | 
    
         
            +
                it "builds equivalent model from hash code" do
         
     | 
| 
      
 119 
     | 
    
         
            +
                  instance_1 = Freeclimb::ReplaceBlobRequest.new(
         
     | 
| 
      
 120 
     | 
    
         
            +
                    blob: Object.new
         
     | 
| 
      
 121 
     | 
    
         
            +
                  )
         
     | 
| 
      
 122 
     | 
    
         
            +
                  instance_2 = Freeclimb::ReplaceBlobRequest.new(
         
     | 
| 
      
 123 
     | 
    
         
            +
                    blob: Object.new
         
     | 
| 
      
 124 
     | 
    
         
            +
                  )
         
     | 
| 
      
 125 
     | 
    
         
            +
             
     | 
| 
      
 126 
     | 
    
         
            +
                  expect(instance_2.build_from_hash(instance_1.hash)).to eq(instance_1.build_from_hash(instance_1.hash))
         
     | 
| 
      
 127 
     | 
    
         
            +
                end
         
     | 
| 
      
 128 
     | 
    
         
            +
              end
         
     | 
| 
      
 129 
     | 
    
         
            +
             
     | 
| 
      
 130 
     | 
    
         
            +
              describe 'test method "_deserialize"' do
         
     | 
| 
      
 131 
     | 
    
         
            +
                instance = Freeclimb::ReplaceBlobRequest.new(
         
     | 
| 
      
 132 
     | 
    
         
            +
                  blob: Object.new
         
     | 
| 
      
 133 
     | 
    
         
            +
                )
         
     | 
| 
      
 134 
     | 
    
         
            +
             
     | 
| 
      
 135 
     | 
    
         
            +
                it "deserializes the data of blob" do
         
     | 
| 
      
 136 
     | 
    
         
            +
                  expect(instance._deserialize("Object", instance.blob)).to be_a_kind_of(Object)
         
     | 
| 
      
 137 
     | 
    
         
            +
                end
         
     | 
| 
      
 138 
     | 
    
         
            +
              end
         
     | 
| 
      
 139 
     | 
    
         
            +
             
     | 
| 
      
 140 
     | 
    
         
            +
              describe 'test method "to_s"' do
         
     | 
| 
      
 141 
     | 
    
         
            +
                it "returns the string representation of the object" do
         
     | 
| 
      
 142 
     | 
    
         
            +
                  instance = Freeclimb::ReplaceBlobRequest.new(
         
     | 
| 
      
 143 
     | 
    
         
            +
                    blob: Object.new
         
     | 
| 
      
 144 
     | 
    
         
            +
                  )
         
     | 
| 
      
 145 
     | 
    
         
            +
                  expect(instance.to_s).to eq(instance.to_hash.to_s)
         
     | 
| 
      
 146 
     | 
    
         
            +
                end
         
     | 
| 
      
 147 
     | 
    
         
            +
              end
         
     | 
| 
      
 148 
     | 
    
         
            +
             
     | 
| 
      
 149 
     | 
    
         
            +
              describe 'test method "to_hash"' do
         
     | 
| 
      
 150 
     | 
    
         
            +
                it "returns the object in the form of hash" do
         
     | 
| 
      
 151 
     | 
    
         
            +
                  instance = Freeclimb::ReplaceBlobRequest.new(
         
     | 
| 
      
 152 
     | 
    
         
            +
                    blob: Object.new
         
     | 
| 
      
 153 
     | 
    
         
            +
                  )
         
     | 
| 
      
 154 
     | 
    
         
            +
                  expect(instance.to_hash).to be_a_kind_of(Hash)
         
     | 
| 
      
 155 
     | 
    
         
            +
                end
         
     | 
| 
      
 156 
     | 
    
         
            +
                it "creates equal hash for two equal objects" do
         
     | 
| 
      
 157 
     | 
    
         
            +
                  obj = Object.new
         
     | 
| 
      
 158 
     | 
    
         
            +
             
     | 
| 
      
 159 
     | 
    
         
            +
                  instance_1 = Freeclimb::ReplaceBlobRequest.new(
         
     | 
| 
      
 160 
     | 
    
         
            +
                    blob: obj
         
     | 
| 
      
 161 
     | 
    
         
            +
                  )
         
     | 
| 
      
 162 
     | 
    
         
            +
                  instance_2 = Freeclimb::ReplaceBlobRequest.new(
         
     | 
| 
      
 163 
     | 
    
         
            +
                    blob: obj
         
     | 
| 
      
 164 
     | 
    
         
            +
                  )
         
     | 
| 
      
 165 
     | 
    
         
            +
                  expect(instance_1.to_hash).to eq(instance_2.to_hash)
         
     | 
| 
      
 166 
     | 
    
         
            +
                end
         
     | 
| 
      
 167 
     | 
    
         
            +
              end
         
     | 
| 
      
 168 
     | 
    
         
            +
             
     | 
| 
      
 169 
     | 
    
         
            +
              describe 'test method "_to_hash"' do
         
     | 
| 
      
 170 
     | 
    
         
            +
                instance = Freeclimb::ReplaceBlobRequest.new
         
     | 
| 
      
 171 
     | 
    
         
            +
             
     | 
| 
      
 172 
     | 
    
         
            +
                it "returns blob in the form of hash" do
         
     | 
| 
      
 173 
     | 
    
         
            +
                  expect(instance._to_hash(instance.blob)).to eq(instance.blob)
         
     | 
| 
      
 174 
     | 
    
         
            +
                end
         
     | 
| 
      
 175 
     | 
    
         
            +
              end
         
     | 
| 
      
 176 
     | 
    
         
            +
            end
         
     | 
    
        data/spec/models/say_spec.rb
    CHANGED
    
    | 
         @@ -39,6 +39,13 @@ describe Freeclimb::Say do 
     | 
|
| 
       39 
39 
     | 
    
         
             
                end
         
     | 
| 
       40 
40 
     | 
    
         
             
              end
         
     | 
| 
       41 
41 
     | 
    
         | 
| 
      
 42 
     | 
    
         
            +
              describe 'test attribute "engine"' do
         
     | 
| 
      
 43 
     | 
    
         
            +
                it "should work" do
         
     | 
| 
      
 44 
     | 
    
         
            +
                  instance.engine = TTSEngine.new
         
     | 
| 
      
 45 
     | 
    
         
            +
                  expect(instance.engine).to be_instance_of(TTSEngine)
         
     | 
| 
      
 46 
     | 
    
         
            +
                end
         
     | 
| 
      
 47 
     | 
    
         
            +
              end
         
     | 
| 
      
 48 
     | 
    
         
            +
             
     | 
| 
       42 
49 
     | 
    
         
             
              describe 'test attribute "loop"' do
         
     | 
| 
       43 
50 
     | 
    
         
             
                it "should work" do
         
     | 
| 
       44 
51 
     | 
    
         
             
                  instance.loop = 1
         
     | 
| 
         @@ -61,6 +68,8 @@ describe Freeclimb::Say do 
     | 
|
| 
       61 
68 
     | 
    
         | 
| 
       62 
69 
     | 
    
         
             
                      language: "TS",
         
     | 
| 
       63 
70 
     | 
    
         | 
| 
      
 71 
     | 
    
         
            +
                      engine: TTSEngine.new,
         
     | 
| 
      
 72 
     | 
    
         
            +
             
     | 
| 
       64 
73 
     | 
    
         
             
                      loop: 1,
         
     | 
| 
       65 
74 
     | 
    
         | 
| 
       66 
75 
     | 
    
         
             
                      privacy_mode: true
         
     | 
| 
         @@ -74,6 +83,8 @@ describe Freeclimb::Say do 
     | 
|
| 
       74 
83 
     | 
    
         | 
| 
       75 
84 
     | 
    
         
             
                      language: "TS",
         
     | 
| 
       76 
85 
     | 
    
         | 
| 
      
 86 
     | 
    
         
            +
                      engine: TTSEngine.new,
         
     | 
| 
      
 87 
     | 
    
         
            +
             
     | 
| 
       77 
88 
     | 
    
         
             
                      loop: 1,
         
     | 
| 
       78 
89 
     | 
    
         | 
| 
       79 
90 
     | 
    
         
             
                      privacy_mode: true,
         
     | 
| 
         @@ -89,6 +100,8 @@ describe Freeclimb::Say do 
     | 
|
| 
       89 
100 
     | 
    
         | 
| 
       90 
101 
     | 
    
         
             
                      language: "TS",
         
     | 
| 
       91 
102 
     | 
    
         | 
| 
      
 103 
     | 
    
         
            +
                      engine: TTSEngine.new,
         
     | 
| 
      
 104 
     | 
    
         
            +
             
     | 
| 
       92 
105 
     | 
    
         
             
                      loop: 1,
         
     | 
| 
       93 
106 
     | 
    
         | 
| 
       94 
107 
     | 
    
         
             
                      privacy_mode: true,
         
     | 
| 
         @@ -106,6 +119,8 @@ describe Freeclimb::Say do 
     | 
|
| 
       106 
119 
     | 
    
         | 
| 
       107 
120 
     | 
    
         
             
                    language: "TS",
         
     | 
| 
       108 
121 
     | 
    
         | 
| 
      
 122 
     | 
    
         
            +
                    engine: TTSEngine.new,
         
     | 
| 
      
 123 
     | 
    
         
            +
             
     | 
| 
       109 
124 
     | 
    
         
             
                    loop: 1,
         
     | 
| 
       110 
125 
     | 
    
         | 
| 
       111 
126 
     | 
    
         
             
                    privacy_mode: true
         
     | 
| 
         @@ -122,11 +137,15 @@ describe Freeclimb::Say do 
     | 
|
| 
       122 
137 
     | 
    
         | 
| 
       123 
138 
     | 
    
         
             
              describe 'test method "eql?"' do
         
     | 
| 
       124 
139 
     | 
    
         
             
                it "checks if objects are equal" do
         
     | 
| 
      
 140 
     | 
    
         
            +
                  obj_engine = Object.new
         
     | 
| 
      
 141 
     | 
    
         
            +
             
     | 
| 
       125 
142 
     | 
    
         
             
                  instance_1 = Freeclimb::Say.new(
         
     | 
| 
       126 
143 
     | 
    
         
             
                    text: "TS",
         
     | 
| 
       127 
144 
     | 
    
         | 
| 
       128 
145 
     | 
    
         
             
                    language: "TS",
         
     | 
| 
       129 
146 
     | 
    
         | 
| 
      
 147 
     | 
    
         
            +
                    engine: obj_engine,
         
     | 
| 
      
 148 
     | 
    
         
            +
             
     | 
| 
       130 
149 
     | 
    
         
             
                    loop: 1,
         
     | 
| 
       131 
150 
     | 
    
         | 
| 
       132 
151 
     | 
    
         
             
                    privacy_mode: true
         
     | 
| 
         @@ -136,6 +155,8 @@ describe Freeclimb::Say do 
     | 
|
| 
       136 
155 
     | 
    
         | 
| 
       137 
156 
     | 
    
         
             
                    language: "TS",
         
     | 
| 
       138 
157 
     | 
    
         | 
| 
      
 158 
     | 
    
         
            +
                    engine: obj_engine,
         
     | 
| 
      
 159 
     | 
    
         
            +
             
     | 
| 
       139 
160 
     | 
    
         
             
                    loop: 1,
         
     | 
| 
       140 
161 
     | 
    
         | 
| 
       141 
162 
     | 
    
         
             
                    privacy_mode: true
         
     | 
| 
         @@ -149,6 +170,8 @@ describe Freeclimb::Say do 
     | 
|
| 
       149 
170 
     | 
    
         | 
| 
       150 
171 
     | 
    
         
             
                    language: "TS",
         
     | 
| 
       151 
172 
     | 
    
         | 
| 
      
 173 
     | 
    
         
            +
                    engine: TTSEngine.new,
         
     | 
| 
      
 174 
     | 
    
         
            +
             
     | 
| 
       152 
175 
     | 
    
         
             
                    loop: 2,
         
     | 
| 
       153 
176 
     | 
    
         | 
| 
       154 
177 
     | 
    
         
             
                    privacy_mode: true
         
     | 
| 
         @@ -158,6 +181,8 @@ describe Freeclimb::Say do 
     | 
|
| 
       158 
181 
     | 
    
         | 
| 
       159 
182 
     | 
    
         
             
                    language: "ST",
         
     | 
| 
       160 
183 
     | 
    
         | 
| 
      
 184 
     | 
    
         
            +
                    engine: TTSEngine.new,
         
     | 
| 
      
 185 
     | 
    
         
            +
             
     | 
| 
       161 
186 
     | 
    
         
             
                    loop: 1,
         
     | 
| 
       162 
187 
     | 
    
         | 
| 
       163 
188 
     | 
    
         
             
                    privacy_mode: false
         
     | 
| 
         @@ -173,6 +198,8 @@ describe Freeclimb::Say do 
     | 
|
| 
       173 
198 
     | 
    
         | 
| 
       174 
199 
     | 
    
         
             
                    language: "TS",
         
     | 
| 
       175 
200 
     | 
    
         | 
| 
      
 201 
     | 
    
         
            +
                    engine: TTSEngine.new,
         
     | 
| 
      
 202 
     | 
    
         
            +
             
     | 
| 
       176 
203 
     | 
    
         
             
                    loop: 1,
         
     | 
| 
       177 
204 
     | 
    
         | 
| 
       178 
205 
     | 
    
         
             
                    privacy_mode: true
         
     | 
| 
         @@ -188,6 +215,8 @@ describe Freeclimb::Say do 
     | 
|
| 
       188 
215 
     | 
    
         | 
| 
       189 
216 
     | 
    
         
             
                    language: "TS",
         
     | 
| 
       190 
217 
     | 
    
         | 
| 
      
 218 
     | 
    
         
            +
                    engine: TTSEngine.new,
         
     | 
| 
      
 219 
     | 
    
         
            +
             
     | 
| 
       191 
220 
     | 
    
         
             
                    loop: 1,
         
     | 
| 
       192 
221 
     | 
    
         | 
| 
       193 
222 
     | 
    
         
             
                    privacy_mode: true
         
     | 
| 
         @@ -197,6 +226,8 @@ describe Freeclimb::Say do 
     | 
|
| 
       197 
226 
     | 
    
         | 
| 
       198 
227 
     | 
    
         
             
                    language: "TS",
         
     | 
| 
       199 
228 
     | 
    
         | 
| 
      
 229 
     | 
    
         
            +
                    engine: TTSEngine.new,
         
     | 
| 
      
 230 
     | 
    
         
            +
             
     | 
| 
       200 
231 
     | 
    
         
             
                    loop: 1,
         
     | 
| 
       201 
232 
     | 
    
         | 
| 
       202 
233 
     | 
    
         
             
                    privacy_mode: true
         
     | 
| 
         @@ -212,6 +243,8 @@ describe Freeclimb::Say do 
     | 
|
| 
       212 
243 
     | 
    
         | 
| 
       213 
244 
     | 
    
         
             
                  language: "TS",
         
     | 
| 
       214 
245 
     | 
    
         | 
| 
      
 246 
     | 
    
         
            +
                  engine: TTSEngine.new,
         
     | 
| 
      
 247 
     | 
    
         
            +
             
     | 
| 
       215 
248 
     | 
    
         
             
                  loop: 1,
         
     | 
| 
       216 
249 
     | 
    
         | 
| 
       217 
250 
     | 
    
         
             
                  privacy_mode: true
         
     | 
| 
         @@ -224,6 +257,10 @@ describe Freeclimb::Say do 
     | 
|
| 
       224 
257 
     | 
    
         
             
                  expect(instance._deserialize("String", instance.language)).to be_a_kind_of(String)
         
     | 
| 
       225 
258 
     | 
    
         
             
                end
         
     | 
| 
       226 
259 
     | 
    
         | 
| 
      
 260 
     | 
    
         
            +
                it "deserializes the data of engine" do
         
     | 
| 
      
 261 
     | 
    
         
            +
                  expect(instance._deserialize("Object", instance.engine)).to be_a_kind_of(TTSEngine)
         
     | 
| 
      
 262 
     | 
    
         
            +
                end
         
     | 
| 
      
 263 
     | 
    
         
            +
             
     | 
| 
       227 
264 
     | 
    
         
             
                it "deserializes the data of loop" do
         
     | 
| 
       228 
265 
     | 
    
         
             
                  expect(instance._deserialize("Integer", instance.loop)).to be_a_kind_of(Integer)
         
     | 
| 
       229 
266 
     | 
    
         
             
                end
         
     | 
| 
         @@ -240,6 +277,8 @@ describe Freeclimb::Say do 
     | 
|
| 
       240 
277 
     | 
    
         | 
| 
       241 
278 
     | 
    
         
             
                    language: "TS",
         
     | 
| 
       242 
279 
     | 
    
         | 
| 
      
 280 
     | 
    
         
            +
                    engine: TTSEngine.new,
         
     | 
| 
      
 281 
     | 
    
         
            +
             
     | 
| 
       243 
282 
     | 
    
         
             
                    loop: 1,
         
     | 
| 
       244 
283 
     | 
    
         | 
| 
       245 
284 
     | 
    
         
             
                    privacy_mode: true
         
     | 
| 
         @@ -255,6 +294,8 @@ describe Freeclimb::Say do 
     | 
|
| 
       255 
294 
     | 
    
         | 
| 
       256 
295 
     | 
    
         
             
                    language: "TS",
         
     | 
| 
       257 
296 
     | 
    
         | 
| 
      
 297 
     | 
    
         
            +
                    engine: TTSEngine.new,
         
     | 
| 
      
 298 
     | 
    
         
            +
             
     | 
| 
       258 
299 
     | 
    
         
             
                    loop: 1,
         
     | 
| 
       259 
300 
     | 
    
         | 
| 
       260 
301 
     | 
    
         
             
                    privacy_mode: true
         
     | 
| 
         @@ -262,11 +303,15 @@ describe Freeclimb::Say do 
     | 
|
| 
       262 
303 
     | 
    
         
             
                  expect(instance.to_hash).to be_a_kind_of(Hash)
         
     | 
| 
       263 
304 
     | 
    
         
             
                end
         
     | 
| 
       264 
305 
     | 
    
         
             
                it "creates equal hash for two equal objects" do
         
     | 
| 
      
 306 
     | 
    
         
            +
                  obj = TTSEngine.new
         
     | 
| 
      
 307 
     | 
    
         
            +
             
     | 
| 
       265 
308 
     | 
    
         
             
                  instance_1 = Freeclimb::Say.new(
         
     | 
| 
       266 
309 
     | 
    
         
             
                    text: "TS",
         
     | 
| 
       267 
310 
     | 
    
         | 
| 
       268 
311 
     | 
    
         
             
                    language: "TS",
         
     | 
| 
       269 
312 
     | 
    
         | 
| 
      
 313 
     | 
    
         
            +
                    engine: obj,
         
     | 
| 
      
 314 
     | 
    
         
            +
             
     | 
| 
       270 
315 
     | 
    
         
             
                    loop: 1,
         
     | 
| 
       271 
316 
     | 
    
         | 
| 
       272 
317 
     | 
    
         
             
                    privacy_mode: true
         
     | 
| 
         @@ -276,6 +321,8 @@ describe Freeclimb::Say do 
     | 
|
| 
       276 
321 
     | 
    
         | 
| 
       277 
322 
     | 
    
         
             
                    language: "TS",
         
     | 
| 
       278 
323 
     | 
    
         | 
| 
      
 324 
     | 
    
         
            +
                    engine: obj,
         
     | 
| 
      
 325 
     | 
    
         
            +
             
     | 
| 
       279 
326 
     | 
    
         
             
                    loop: 1,
         
     | 
| 
       280 
327 
     | 
    
         | 
| 
       281 
328 
     | 
    
         
             
                    privacy_mode: true
         
     | 
| 
         @@ -300,6 +347,9 @@ describe Freeclimb::Say do 
     | 
|
| 
       300 
347 
     | 
    
         
             
                it "returns language in the form of hash" do
         
     | 
| 
       301 
348 
     | 
    
         
             
                  expect(instance._to_hash(instance.language)).to eq(instance.language)
         
     | 
| 
       302 
349 
     | 
    
         
             
                end
         
     | 
| 
      
 350 
     | 
    
         
            +
                it "returns engine in the form of hash" do
         
     | 
| 
      
 351 
     | 
    
         
            +
                  expect(instance._to_hash(instance.engine)).to eq(instance.engine)
         
     | 
| 
      
 352 
     | 
    
         
            +
                end
         
     | 
| 
       303 
353 
     | 
    
         
             
                it "returns loop in the form of hash" do
         
     | 
| 
       304 
354 
     | 
    
         
             
                  expect(instance._to_hash(instance.loop)).to eq(instance.loop)
         
     | 
| 
       305 
355 
     | 
    
         
             
                end
         
     |