cartodb/spec/doubles/request.rb

15 lines
267 B
Ruby
Raw Normal View History

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