somleng/somleng-adhearsion

View on GitHub
components/app/app/models/call_properties.rb

Summary

Maintainability
A
0 mins
Test Coverage
CallProperties = Struct.new(
  :voice_url,
  :voice_method,
  :twiml,
  :account_sid,
  :auth_token,
  :call_sid,
  :direction,
  :api_version,
  :to,
  :from,
  :sip_headers,
  :default_tts_voice,
  keyword_init: true
) do
  def inbound?
    direction == "inbound"
  end
end