cartodb-4.29/spec/doubles/request.rb

17 lines
286 B
Ruby
Raw Permalink Normal View History

2021-01-24 16:18:54 +08:00
# encoding: utf-8
2020-06-15 10:58:47 +08:00
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