Sha256: 53f11df33b71f5089249afae491d2aa433f9bb710379edb1125685d950342f97
Contents?: true
Size: 554 Bytes
Versions: 5
Compression:
Stored size: 554 Bytes
Contents
module Aptible module Resource class Adapter < HyperResource::Adapter::HAL_JSON class << self def get_data_type_from_object(object) return nil unless object # TODO: Only reference _type # See https://github.com/aptible/auth.aptible.com/issues/61 if (type = object['_type'] || object['type']) if type.respond_to?(:camelize) type.camelize else type[0].upcase + type[1..-1] end end end end end end end
Version data entries
5 entries across 5 versions & 1 rubygems