Sha256: 88ef108ecefba0c28016984dea1b1798405847199bd438620582ca36d74516c7

Contents?: true

Size: 375 Bytes

Versions: 9

Compression:

Stored size: 375 Bytes

Contents

# frozen_string_literal: true

require 'active_support/concern'

module AppStoreDevApi
  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

9 entries across 9 versions & 1 rubygems

Version Path
app_store_dev_api-0.1.9 lib/app_store_dev_api/object/type.rb
app_store_dev_api-0.1.8 lib/app_store_dev_api/object/type.rb
app_store_dev_api-0.1.7 lib/app_store_dev_api/object/type.rb
app_store_dev_api-0.1.6 lib/app_store_dev_api/object/type.rb
app_store_dev_api-0.1.4 lib/app_store_dev_api/object/type.rb
app_store_dev_api-0.1.3 lib/app_store_dev_api/object/type.rb
app_store_dev_api-0.1.2 lib/app_store_dev_api/object/type.rb
app_store_dev_api-0.1.1 lib/app_store_dev_api/object/type.rb
app_store_dev_api-0.1.0 lib/app_store_dev_api/object/type.rb