class PandaDoc::ResponseFactory
Attributes
Public Class Methods
Source
# File lib/panda_doc/response_factory.rb, line 8 def self.build(type) new(type).build end
Source
# File lib/panda_doc/response_factory.rb, line 12 def initialize(type) @type = type.to_s.split('_').map(&:capitalize).join end
Public Instance Methods
Source
# File lib/panda_doc/response_factory.rb, line 16 def build PandaDoc::Objects.const_get(type) end