Class: Freee::Response::Type
- Inherits:
-
Object
- Object
- Freee::Response::Type
- Defined in:
- lib/freee/obj/response.rb
Class Method Summary collapse
Class Method Details
.convert(response, type = nil) ⇒ Object
32 33 34 35 |
# File 'lib/freee/obj/response.rb', line 32 def self.convert(response, type=nil) klass = "Freee::Response::#{type.to_s.capitalize}".constantize klass.new(response) end |