Class: Crocodoc::FakeResponse

Inherits:
Object
  • Object
show all
Defined in:
lib/crocodoc/fake_server.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#bodyObject

Returns the value of attribute body.



148
149
150
# File 'lib/crocodoc/fake_server.rb', line 148

def body
  @body
end

#codeObject

Returns the value of attribute code.



148
149
150
# File 'lib/crocodoc/fake_server.rb', line 148

def code
  @code
end