Class: Clever::FakeResponse
- Inherits:
-
Object
- Object
- Clever::FakeResponse
- Defined in:
- lib/clever/fake_response.rb
Instance Attribute Summary collapse
-
#body ⇒ Object
Returns the value of attribute body.
-
#code ⇒ Object
Returns the value of attribute code.
Instance Method Summary collapse
-
#initialize(code, body) ⇒ FakeResponse
constructor
A new instance of FakeResponse.
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
#body ⇒ Object
Returns the value of attribute body.
2 3 4 |
# File 'lib/clever/fake_response.rb', line 2 def body @body end |
#code ⇒ Object
Returns the value of attribute code.
2 3 4 |
# File 'lib/clever/fake_response.rb', line 2 def code @code end |