Class: HaveAPI::ModelAdapters::Hash

Inherits:
HaveAPI::ModelAdapter show all
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

Classes: Input, Output

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

Returns:



9
10
11
# File 'lib/haveapi/model_adapters/hash.rb', line 9

def self.handle?(layout, klass)
  klass.is_a?(::Hash)
end