class PandaDoc::ResponseFactory
Attributes
type[R]
Public Class Methods
build(type)
click to toggle source
# File lib/panda_doc/response_factory.rb, line 8 def self.build(type) new(type).build end
new(type)
click to toggle source
# File lib/panda_doc/response_factory.rb, line 12 def initialize(type) @type = type.capitalize end
Public Instance Methods
build()
click to toggle source
# File lib/panda_doc/response_factory.rb, line 16 def build PandaDoc::Objects.const_get(type) end