Sha256: 09587b726287df58338f75b0218ca19cc164744b8b4ceeeb0867671b2a587207
Contents?: true
Size: 487 Bytes
Versions: 6
Compression:
Stored size: 487 Bytes
Contents
module Aptible class Api::Adapter < HyperResource::Adapter::HAL_JSON class << self # rubocop:disable MethodLength def get_data_type_from_object(object) return nil unless object if (type = object['_type']) if type.respond_to?(:camelize) type.camelize else type[0].upcase + type[1..-1] end else 'Resource' end end # rubocop:enable MethodLength end end end
Version data entries
6 entries across 6 versions & 1 rubygems