Module: Twilio::Verb::ClassMethods
- Included in:
- Conference, Dial, Gather, Hangup, Number, Pause, Play, Record, Redirect, Response, Say, Sms
- Defined in:
- lib/twiliolib.rb
Instance Attribute Summary collapse
-
#attributes(*attrs) ⇒ Object
Returns the value of attribute attributes.
Instance Method Summary collapse
Instance Attribute Details
#attributes(*attrs) ⇒ Object
Returns the value of attribute attributes.
141 142 143 |
# File 'lib/twiliolib.rb', line 141 def attributes @attributes end |
Instance Method Details
#allowed_verbs(*verbs) ⇒ Object
143 144 145 146 147 148 149 150 |
# File 'lib/twiliolib.rb', line 143 def allowed_verbs(*verbs) return @allowed_verbs if verbs == [] @allowed_verbs = [] if @allowed_verbs.nil? verbs.each do |verb| @allowed_verbs << verb.to_s.capitalize end @allowed_verbs = @allowed_verbs.uniq end |