Module: Jat::Plugins::SimpleApi::InstanceMethods

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

Instance Method Summary collapse

Instance Method Details

#mapObject



54
55
56
# File 'lib/jat/plugins/simple_api/simple_api.rb', line 54

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

#to_h(object) ⇒ Object



50
51
52
# File 'lib/jat/plugins/simple_api/simple_api.rb', line 50

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