class RingCentralSdk::REST::Request::Fax

Public Instance Methods

add_metadata(data, opts = {}) click to toggle source
# File lib/ringcentral_sdk/rest/request/fax.rb, line 5
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
url() click to toggle source
# File lib/ringcentral_sdk/rest/request/fax.rb, line 16
def url
  "account/#{@account_id}/extension/#{@extension_id}/fax"
end