Class: PandaDoc::ResponseFactory

Inherits:
Object
  • Object
show all
Defined in:
lib/panda_doc/response_factory.rb

Instance Method Summary collapse

Constructor Details

#initialize(type) ⇒ ResponseFactory

Returns a new instance of ResponseFactory.



6
7
8
# File 'lib/panda_doc/response_factory.rb', line 6

def initialize(type)
  @type = type.capitalize
end

Instance Method Details

#buildObject



10
11
12
# File 'lib/panda_doc/response_factory.rb', line 10

def build
  response_class.new(object_class.new)
end