Sha256: b52734711aed1e2c9f244b943c54ed0f2965172040fe7cd3b70781106d768a0b

Contents?: true

Size: 411 Bytes

Versions: 1

Compression:

Stored size: 411 Bytes

Contents

# frozen_string_literal: true

require 'active_support/concern'

module AppStoreConnect
  module Object
    module Type
      extend ActiveSupport::Concern

      class_methods do
        def type(type)
          @type = type

          const_set('TYPE', type)
        end
      end

      included do
        def type
          self.class.instance_variable_get('@type')
        end
      end
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
app_store_connect-0.7.0 lib/app_store_connect/object/type.rb