Class: SeismicAPI::Teamsites::AllTestResponse

Inherits:
Object
  • Object
show all
Defined in:
lib/seismic_api/test_responses.rb

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(args) ⇒ AllTestResponse

Returns a new instance of AllTestResponse.


14
15
16
# File 'lib/seismic_api/test_responses.rb', line 14

def initialize(args)
  
end

Class Method Details

.match(request) ⇒ Object


10
11
12
# File 'lib/seismic_api/test_responses.rb', line 10

def self.match(request)
  request.path.match(/teamsites$/)
end

Instance Method Details

#bodyObject


18
19
20
# File 'lib/seismic_api/test_responses.rb', line 18

def body
  {}.to_json
end

#codeObject


22
23
24
# File 'lib/seismic_api/test_responses.rb', line 22

def code
  200
end

#success?Boolean

Returns:

  • (Boolean)

26
27
28
# File 'lib/seismic_api/test_responses.rb', line 26

def success?
  true
end