Class: PandaDoc::ResponseFactory
- Inherits:
-
Object
- Object
- PandaDoc::ResponseFactory
- Defined in:
- lib/panda_doc/response_factory.rb
Instance Method Summary collapse
- #build ⇒ Object
-
#initialize(type) ⇒ ResponseFactory
constructor
A new instance of ResponseFactory.
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
#build ⇒ Object
10 11 12 |
# File 'lib/panda_doc/response_factory.rb', line 10 def build response_class.new(object_class.new) end |