Class: Clever::FakeResponse

Inherits:
Object
  • Object
show all
Defined in:
lib/clever/fake_response.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(code, body) ⇒ FakeResponse

Returns a new instance of FakeResponse.



4
5
6
7
# File 'lib/clever/fake_response.rb', line 4

def initialize(code, body)
  @code = code
  @body = body
end

Instance Attribute Details

#bodyObject

Returns the value of attribute body.



2
3
4
# File 'lib/clever/fake_response.rb', line 2

def body
  @body
end

#codeObject

Returns the value of attribute code.



2
3
4
# File 'lib/clever/fake_response.rb', line 2

def code
  @code
end