Sha256: d37b3723448cf5bf9b1b27e54da7a3f24b7669667ade3c59ce46f779353f8a1c
Contents?: true
Size: 539 Bytes
Versions: 11
Compression:
Stored size: 539 Bytes
Contents
# frozen_string_literal: true require 'active_support/concern' module AppStoreConnect module Object module Id extend ActiveSupport::Concern class_methods do def id(arg_name = :id) @include_id_in_body = true @id_arg_name = arg_name end end included do def id? self.class.instance_variable_get('@include_id_in_body') end def id_arg_name self.class.instance_variable_get('@id_arg_name') end end end end end
Version data entries
11 entries across 11 versions & 1 rubygems