Class: HaveAPI::ModelAdapters::Hash::Output

Inherits:
HaveAPI::ModelAdapter::Output show all
Defined in:
lib/haveapi/model_adapters/hash.rb

Instance Method Summary collapse

Methods inherited from HaveAPI::ModelAdapter::Output

#initialize, #meta, used_by

Constructor Details

This class inherits a constructor from HaveAPI::ModelAdapter::Output

Instance Method Details

#[](name) ⇒ Object



24
25
26
# File 'lib/haveapi/model_adapters/hash.rb', line 24

def [](name)
  @object[name]
end

#has_param?(name) ⇒ Boolean

Returns:



20
21
22
# File 'lib/haveapi/model_adapters/hash.rb', line 20

def has_param?(name)
  @object.has_key?(name)
end