def play(*args)
      options = {:loop => 1}
      args.each do |arg|
        case arg
        when String
          options[:audio_url] = arg
        when Hash
          options.merge!(arg)
        else
          raise ArgumentError, 'play expects String or Hash argument'
        end
      end

      output {
        if options[:pause]
          loop_with_pause(options[:loop], @xml) do
            @xml.Play(options[:audio_url])
          end
        else
          @xml.Play(options[:audio_url], :loop => options[:loop])
        end
      }
    end
def play(*args)
      options = {:loop => 1}
      args.each do |arg|
        case arg
        when String
          options[:audio_url] = arg
        when Hash
          options.merge!(arg)
        else
          raise ArgumentError, 'play expects String or Hash argument'
        end
      end

      output {
        if options[:pause]
          loop_with_pause(options[:loop], @xml) do
            @xml.Play(options[:audio_url])
          end
        else
          @xml.Play(options[:audio_url], :loop => options[:loop])
        end
      }
    end
The Play verb plays an audio URL back to the caller.
 Examples:
   Twilio::Verb.play 'http://foo.com/cowbell.mp3'
   Twilio::Verb.play 'http://foo.com/cowbell.mp3', :loop => 3

 If you need a longer pause between each loop, instead of explicitly calling the Pause
 verb within a block, you can set the convenient pause option:

   Twilio::Verb.play 'http://foo.com/cowbell.mp3', :loop => 3, :pause => true

 Options (see http://www.twilio.com/docs/api_reference/TwiML/play) are passed in as a hash,
 but only 'loop' is currently supported.