Module: Twilio::Verb::ClassMethods
- Defined in:
- lib/twilio.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.
136 137 138 |
# File 'lib/twilio.rb', line 136 def attributes @attributes end |
Instance Method Details
#allowed_verbs(*verbs) ⇒ Object
138 139 140 141 142 143 144 145 |
# File 'lib/twilio.rb', line 138 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 |