Sha256: 93b72446ed5a18512a89d77b442e85e91e4b1e2174650e378559a71754e73d74

Contents?: true

Size: 386 Bytes

Versions: 10

Compression:

Stored size: 386 Bytes

Contents

module Zermelo
  module Associations
    class IndexData
      attr_writer  :data_klass_name
      attr_accessor :name, :type, :index_klass

      def initialize(opts = {})
        [:name, :type, :index_klass].each do |a|
          send("#{a}=".to_sym, opts[a])
        end
      end

      def data_klass
        @data_klass ||= @data_klass_name.constantize
      end
    end
  end
end

Version data entries

10 entries across 10 versions & 1 rubygems

Version Path
zermelo-1.4.3 lib/zermelo/associations/index_data.rb
zermelo-1.4.2 lib/zermelo/associations/index_data.rb
zermelo-1.4.1 lib/zermelo/associations/index_data.rb
zermelo-1.4.0 lib/zermelo/associations/index_data.rb
zermelo-1.3.0 lib/zermelo/associations/index_data.rb
zermelo-1.2.1 lib/zermelo/associations/index_data.rb
zermelo-1.2.0 lib/zermelo/associations/index_data.rb
zermelo-1.1.0 lib/zermelo/associations/index_data.rb
zermelo-1.0.1 lib/zermelo/associations/index_data.rb
zermelo-1.0.0 lib/zermelo/associations/index_data.rb