Class: HaveAPI::ModelAdapters::Hash
- Inherits:
-
HaveAPI::ModelAdapter
- Object
- HaveAPI::ModelAdapter
- HaveAPI::ModelAdapters::Hash
- Defined in:
- lib/haveapi/model_adapters/hash.rb
Overview
Simple hash adapter. Model is just a hash of parameters and their values.
Defined Under Namespace
Class Method Summary collapse
Methods inherited from HaveAPI::ModelAdapter
for, input, input_clean, load_validators, output, register, used_by
Class Method Details
.handle?(layout, klass) ⇒ Boolean
9 10 11 |
# File 'lib/haveapi/model_adapters/hash.rb', line 9 def self.handle?(layout, klass) klass.is_a?(::Hash) end |