Class: Served::Backends::Base

Inherits:
Object
  • Object
show all
Defined in:
lib/served/backends/base.rb

Direct Known Subclasses

HTTP, HTTParty, Patron

Instance Method Summary collapse

Constructor Details

#initialize(client) ⇒ Base

Returns a new instance of Base.



6
7
8
# File 'lib/served/backends/base.rb', line 6

def initialize(client)
  @client = client
end

Instance Method Details

#serialize_response(response) ⇒ Object



10
11
12
# File 'lib/served/backends/base.rb', line 10

def serialize_response(response)
  response
end