Module: Adhearsion::Twilio::Spec::Helpers::LastRequest

Included in:
Adhearsion::Twilio::Spec::Helpers
Defined in:
lib/adhearsion/twilio/spec/helpers.rb

Overview

Instance Method Summary collapse

Instance Method Details

#clear_requests!Object


26
27
28
# File 'lib/adhearsion/twilio/spec/helpers.rb', line 26

def clear_requests!
  @requests = nil
end

#last_request=(request_signature) ⇒ Object


34
35
36
37
# File 'lib/adhearsion/twilio/spec/helpers.rb', line 34

def last_request=(request_signature)
  requests << request_signature
  request_signature
end

#requestsObject


30
31
32
# File 'lib/adhearsion/twilio/spec/helpers.rb', line 30

def requests
  @requests ||= []
end