Sha256: 2405b10187e1e5cf63eb08157612ea8893bfaee9489ea98ad9fbf03a9bf48d41
Contents?: true
Size: 545 Bytes
Versions: 7
Compression:
Stored size: 545 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 return nil unless (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
Version data entries
7 entries across 7 versions & 1 rubygems