Sha256: beb7bca88839a0aa88405f127f7b7db7e96578e53bfa6d76f1a70ea36562e7fa

Contents?: true

Size: 405 Bytes

Versions: 9

Compression:

Stored size: 405 Bytes

Contents

# frozen_string_literal: true

require 'active_support/concern'

module AppStoreDevApi
  module Object
    module Properties
      extend ActiveSupport::Concern

      class_methods do
        def properties
          @properties ||= {}
        end

        def property(name, options = {})
          properties[name] = options

          attr_accessor name.to_sym
        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/properties.rb
app_store_dev_api-0.1.8 lib/app_store_dev_api/object/properties.rb
app_store_dev_api-0.1.7 lib/app_store_dev_api/object/properties.rb
app_store_dev_api-0.1.6 lib/app_store_dev_api/object/properties.rb
app_store_dev_api-0.1.4 lib/app_store_dev_api/object/properties.rb
app_store_dev_api-0.1.3 lib/app_store_dev_api/object/properties.rb
app_store_dev_api-0.1.2 lib/app_store_dev_api/object/properties.rb
app_store_dev_api-0.1.1 lib/app_store_dev_api/object/properties.rb
app_store_dev_api-0.1.0 lib/app_store_dev_api/object/properties.rb