Method: Endpoint::Stub#initialize

Defined in:
lib/endpoint/stub.rb

#initialize(model, options) ⇒ Stub

Returns a new instance of Stub.



85
86
87
88
89
90
91
92
93
94
# File 'lib/endpoint/stub.rb', line 85

def initialize(model, options)
  @defaults = options[:defaults] || {}

  @model = model
  @site = URI "#{model.site}/#{model.name.split('::').last.underscore.pluralize}"

  @responses = {}

  @records = []
end