class Bandwidth::Xml::Verbs::Reject

The Reject verb is used to reject incoming calls

Public Instance Methods

to_xml(xml) click to toggle source
# File lib/bandwidth/xml/verbs/reject.rb, line 8
def to_xml(xml)
  warn "[DEPRECATION] Verb 'Reject' will be removed in Bandwidth XML v2"
  xml.Reject(compact_hash({
   'reason' => reason
  }))
end