Class: Restfulie::Client::Feature::FakeResponse
- Inherits:
-
Object
- Object
- Restfulie::Client::Feature::FakeResponse
- Defined in:
- lib/restfulie/client/feature/fake_response.rb
Instance Attribute Summary collapse
-
#body ⇒ Object
readonly
Returns the value of attribute body.
-
#code ⇒ Object
readonly
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.
6 7 8 9 |
# File 'lib/restfulie/client/feature/fake_response.rb', line 6 def initialize(code, body) @code = code @body = body end |
Instance Attribute Details
#body ⇒ Object (readonly)
Returns the value of attribute body.
5 6 7 |
# File 'lib/restfulie/client/feature/fake_response.rb', line 5 def body @body end |
#code ⇒ Object (readonly)
Returns the value of attribute code.
5 6 7 |
# File 'lib/restfulie/client/feature/fake_response.rb', line 5 def code @code end |