Module: Twilio::Verb::ClassMethods

Included in:
Dial, Gather, Hangup, Number, Pause, Play, Record, Redirect, Response, Say
Defined in:
lib/twilio.rb

Instance Attribute Summary collapse

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