class HaveAPI::ModelAdapter::Output
Subclass this class in your adapter and reimplement necessary methods.
Public Class Methods
Source
# File lib/haveapi/model_adapter.rb, line 91 def initialize(context, obj) @context = context @object = obj end
Public Instance Methods
Source
# File lib/haveapi/model_adapter.rb, line 101 def [](name); end
Return a parameter in an appropriate format to be sent to a client.
Source
# File lib/haveapi/model_adapter.rb, line 98 def has_param?(name); end
Return true if input parameters contain parameter with ‘name`.