Sha256: a3d8128823287fb1f0aac41d98399f4c7fbd3c499e5d93684b3b73f1d41a1521

Contents?: true

Size: 415 Bytes

Versions: 21

Compression:

Stored size: 415 Bytes

Contents

class LogicalModel
  module Hydra

    def self.included(base)
      base.send(:extend, ClassMethods)
    end

    module ClassMethods

      # Set which Hydra this class should use for calls.
      # @param hydra [Typhoues::Hydra]
      def use_hydra(hydra)
        self.hydra=(hydra)
      end

      def hydra
        @@hydra
      end

      def hydra=(hydra)
        @@hydra = hydra
      end
    end
  end
end

Version data entries

21 entries across 21 versions & 1 rubygems

Version Path
logical_model-0.7.6 lib/logical_model/hydra.rb
logical_model-0.7.5 lib/logical_model/hydra.rb
logical_model-0.7.4 lib/logical_model/hydra.rb
logical_model-0.7.3 lib/logical_model/hydra.rb
logical_model-0.7.2 lib/logical_model/hydra.rb
logical_model-0.7.1 lib/logical_model/hydra.rb
logical_model-0.7.0 lib/logical_model/hydra.rb
logical_model-0.6.6 lib/logical_model/hydra.rb
logical_model-0.6.5 lib/logical_model/hydra.rb
logical_model-0.6.4 lib/logical_model/hydra.rb
logical_model-0.6.3 lib/logical_model/hydra.rb
logical_model-0.6.2 lib/logical_model/hydra.rb
logical_model-0.6.1 lib/logical_model/hydra.rb
logical_model-0.6.0 lib/logical_model/hydra.rb
logical_model-0.5.13 lib/logical_model/hydra.rb
logical_model-0.5.12 lib/logical_model/hydra.rb
logical_model-0.5.11 lib/logical_model/hydra.rb
logical_model-0.5.10 lib/logical_model/hydra.rb
logical_model-0.5.8 lib/logical_model/hydra.rb
logical_model-0.5.7 lib/logical_model/hydra.rb