Module: Jat::Plugins::JsonApi::InstanceMethods

Defined in:
lib/jat/plugins/json_api/json_api.rb

Instance Method Summary collapse

Instance Method Details

#mapObject



60
61
62
# File 'lib/jat/plugins/json_api/json_api.rb', line 60

def map
  @map ||= self.class.map(context)
end

#to_h(object) ⇒ Object



56
57
58
# File 'lib/jat/plugins/json_api/json_api.rb', line 56

def to_h(object)
  self.class::Response.call(object, context)
end