Sha256: fbd943a35bb6f0c04b9f29718623833755b8c68fe965240fa2141e5c34ef503e

Contents?: true

Size: 1.47 KB

Versions: 17

Compression:

Stored size: 1.47 KB

Contents

# encoding: UTF-8
#
# = Handle.rb -- Persistent Ruby Object Store
#
# Copyright (c) 2015, 2016 by Chris Schlaeger <chris@taskjuggler.org>
#
# MIT License
#
# Permission is hereby granted, free of charge, to any person obtaining
# a copy of this software and associated documentation files (the
# "Software"), to deal in the Software without restriction, including
# without limitation the rights to use, copy, modify, merge, publish,
# distribute, sublicense, and/or sell copies of the Software, and to
# permit persons to whom the Software is furnished to do so, subject to
# the following conditions:
#
# The above copyright notice and this permission notice shall be
# included in all copies or substantial portions of the Software.
#
# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
# EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
# MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
# NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
# LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
# OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
# WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

module PEROBS

  # The Handle is the first paramter of the initialize() method of every
  # PEROBS object. By convention this parameter should be called 'p'.
  class Handle

    attr_reader :store, :id

    def initialize(store, id)
      @store = store
      @id = id
    end

  end

end

Version data entries

17 entries across 17 versions & 1 rubygems

Version Path
perobs-4.6.0 lib/perobs/Handle.rb
perobs-4.5.0 lib/perobs/Handle.rb
perobs-4.4.0 lib/perobs/Handle.rb
perobs-4.3.0 lib/perobs/Handle.rb
perobs-4.2.0 lib/perobs/Handle.rb
perobs-4.1.0 lib/perobs/Handle.rb
perobs-4.0.0 lib/perobs/Handle.rb
perobs-3.0.2 lib/perobs/Handle.rb
perobs-3.0.1 lib/perobs/Handle.rb
perobs-3.0.0 lib/perobs/Handle.rb
perobs-2.5.0 lib/perobs/Handle.rb
perobs-2.4.2 lib/perobs/Handle.rb
perobs-2.4.1 lib/perobs/Handle.rb
perobs-2.4.0 lib/perobs/Handle.rb
perobs-2.3.1 lib/perobs/Handle.rb
perobs-2.3.0 lib/perobs/Handle.rb
perobs-2.2.0 lib/perobs/Handle.rb