Module: Twilio::Rails::HasDirection
- Extended by:
- ActiveSupport::Concern
- Defined in:
- lib/twilio/rails/concerns/has_direction.rb
Overview
Provides scopes, validations, and convenience methods for a model that has an attribute direction
with
values "inbound" or "outbound".
Instance Method Summary collapse
Instance Method Details
#inbound? ⇒ Boolean
16 17 18 |
# File 'lib/twilio/rails/concerns/has_direction.rb', line 16 def inbound? direction == "inbound" end |
#outbound? ⇒ Boolean
20 21 22 |
# File 'lib/twilio/rails/concerns/has_direction.rb', line 20 def outbound? direction == "outbound" end |