Sha256: b76dd16e499429e9a29cf1fd93adcb3b363605f5a2301b7c5e5a3006077fa9bc

Contents?: true

Size: 999 Bytes

Versions: 13

Compression:

Stored size: 999 Bytes

Contents

module Eco
  module API
    module Common
      module Session
        class BaseSession

          include Common::People

          attr_accessor :environment, :config
          alias_method :enviro, :environment
          alias_method :enviro=, :environment=

          attr_reader  :api, :file_manager, :logger
          alias_method :fm, :file_manager

          def initialize(e)
            e = Environment.new(e) if !e.is_a?(Environment)
            self.environment = e if e.is_a?(Environment)
          end

          def environment=(value)
            @environment = nil
            @environment = value if value.is_a?(Environment)
          end

          def config
            enviro.config
          end

          def api
            enviro.api
          end

          def file_manager
            enviro.file_manager
          end

          def logger
            enviro.logger
          end

        end
      end
    end
  end
end

Version data entries

13 entries across 13 versions & 1 rubygems

Version Path
eco-helpers-0.6.13 lib/eco/api/common/session/base_session.rb
eco-helpers-0.6.12 lib/eco/api/common/session/base_session.rb
eco-helpers-0.6.11 lib/eco/api/common/session/base_session.rb
eco-helpers-0.6.9 lib/eco/api/common/session/base_session.rb
eco-helpers-0.6.8 lib/eco/api/common/session/base_session.rb
eco-helpers-0.6.7 lib/eco/api/common/session/base_session.rb
eco-helpers-0.6.6 lib/eco/api/common/session/base_session.rb
eco-helpers-0.6.5 lib/eco/api/common/session/base_session.rb
eco-helpers-0.6.4 lib/eco/api/common/session/base_session.rb
eco-helpers-0.6.3 lib/eco/api/common/session/base_session.rb
eco-helpers-0.6.2 lib/eco/api/common/session/base_session.rb
eco-helpers-0.6.1 lib/eco/api/common/session/base_session.rb
eco-helpers-0.6.0 lib/eco/api/common/session/base_session.rb