Class: PEROBS::Handle

Inherits:
Object
  • Object
show all
Defined in:
lib/perobs/Handle.rb

Overview

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(store, id) ⇒ Handle

Returns a new instance of Handle.



36
37
38
39
# File 'lib/perobs/Handle.rb', line 36

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

Instance Attribute Details

#idObject (readonly)

Returns the value of attribute id.



34
35
36
# File 'lib/perobs/Handle.rb', line 34

def id
  @id
end

#storeObject (readonly)

Returns the value of attribute store.



34
35
36
# File 'lib/perobs/Handle.rb', line 34

def store
  @store
end