Module: Ocm::Idable

Defined in:
lib/ocm/idable.rb

Class Method Summary collapse

Instance Method Summary collapse

Class Method Details

.generate_idObject



14
15
16
# File 'lib/ocm/idable.rb', line 14

def self.generate_id
  SecureRandom.uuid()
end

Instance Method Details

#idObject



6
7
8
# File 'lib/ocm/idable.rb', line 6

def id
  @id
end

#id=(id) ⇒ Object



10
11
12
# File 'lib/ocm/idable.rb', line 10

def id=(id)
  @id = id
end