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

Version Path
app_store_connect-0.38.0 lib/app_store_connect/object/id.rb
app_store_connect-0.37.0 lib/app_store_connect/object/id.rb
app_store_connect-0.36.0 lib/app_store_connect/object/id.rb
app_store_connect-0.35.0 lib/app_store_connect/object/id.rb
app_store_connect-0.34.0 lib/app_store_connect/object/id.rb
app_store_connect-0.33.0 lib/app_store_connect/object/id.rb
app_store_connect-0.32.0 lib/app_store_connect/object/id.rb
app_store_connect-0.30.0 lib/app_store_connect/object/id.rb
app_store_connect-0.29.0 lib/app_store_connect/object/id.rb
app_store_connect-0.28.0 lib/app_store_connect/object/id.rb
app_store_connect-0.27.0 lib/app_store_connect/object/id.rb