Sha256: ffe6e5d8c464b4a67eac983b8a305607c04b39548f45cd597c177ebaede099fb

Contents?: true

Size: 376 Bytes

Versions: 31

Compression:

Stored size: 376 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
        end
      end

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

Version data entries

31 entries across 31 versions & 1 rubygems

Version Path
app_store_connect-0.38.0 lib/app_store_connect/object/type.rb
app_store_connect-0.37.0 lib/app_store_connect/object/type.rb
app_store_connect-0.36.0 lib/app_store_connect/object/type.rb
app_store_connect-0.35.0 lib/app_store_connect/object/type.rb
app_store_connect-0.34.0 lib/app_store_connect/object/type.rb
app_store_connect-0.33.0 lib/app_store_connect/object/type.rb
app_store_connect-0.32.0 lib/app_store_connect/object/type.rb
app_store_connect-0.30.0 lib/app_store_connect/object/type.rb
app_store_connect-0.29.0 lib/app_store_connect/object/type.rb
app_store_connect-0.28.0 lib/app_store_connect/object/type.rb
app_store_connect-0.27.0 lib/app_store_connect/object/type.rb
app_store_connect-0.26.0 lib/app_store_connect/object/type.rb
app_store_connect-0.25.0 lib/app_store_connect/object/type.rb
app_store_connect-0.23.0 lib/app_store_connect/object/type.rb
app_store_connect-0.22.0 lib/app_store_connect/object/type.rb
app_store_connect-0.21.0 lib/app_store_connect/object/type.rb
app_store_connect-0.20.0 lib/app_store_connect/object/type.rb
app_store_connect-0.19.0 lib/app_store_connect/object/type.rb
app_store_connect-0.18.0 lib/app_store_connect/object/type.rb
app_store_connect-0.17.0 lib/app_store_connect/object/type.rb