Class: Crocodoc::FakeResponse
- Inherits:
-
Object
- Object
- Crocodoc::FakeResponse
- Defined in:
- lib/crocodoc/fake_server.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.
149 150 151 152 |
# File 'lib/crocodoc/fake_server.rb', line 149 def initialize(code, body) @code = code @body = body end |
Instance Attribute Details
#body ⇒ Object
Returns the value of attribute body.
148 149 150 |
# File 'lib/crocodoc/fake_server.rb', line 148 def body @body end |
#code ⇒ Object
Returns the value of attribute code.
148 149 150 |
# File 'lib/crocodoc/fake_server.rb', line 148 def code @code end |