cartodb/spec/doubles/request.rb
2021-01-24 16:18:54 +08:00

17 lines
286 B
Ruby

# encoding: utf-8
module Doubles
class Request
def initialize(attributes={})
@host = attributes.fetch(:host, '')
@fullpath = attributes.fetch(:fullpath, '')
@params = attributes.fetch(:params, {})
end
attr_reader :host, :params, :fullpath
end
end