Sha256: 1b34bcc62e862259162e56ce5ad8d5a7fb34595ca1d01e85f3e7451b0ef451c1

Contents?: true

Size: 539 Bytes

Versions: 7

Compression:

Stored size: 539 Bytes

Contents

module RingCentralSdk
  module REST
    module Request
      class Fax < RingCentralSdk::REST::Request::Multipart
        def add_metadata(data, opts = {})
          if data.is_a? Hash
            inf = RingCentralSdk::REST::Request::Inflator::ContactInfo.new
            if data.key? :to
              data[:to] = inf.inflate_to_array data[:to]
            end
          end

          super data, opts
        end

        def url
          "account/#{@account_id}/extension/#{@extension_id}/fax"
        end
      end
    end
  end
end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
ringcentral_sdk-3.1.0 lib/ringcentral_sdk/rest/request/fax.rb
ringcentral_sdk-3.0.1 lib/ringcentral_sdk/rest/request/fax.rb
ringcentral_sdk-3.0.0 lib/ringcentral_sdk/rest/request/fax.rb
ringcentral_sdk-2.3.0 lib/ringcentral_sdk/rest/request/fax.rb
ringcentral_sdk-2.2.3 lib/ringcentral_sdk/rest/request/fax.rb
ringcentral_sdk-2.2.2 lib/ringcentral_sdk/rest/request/fax.rb
ringcentral_sdk-2.2.1 lib/ringcentral_sdk/rest/request/fax.rb