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