Class: Sohm::Set

Inherits:
BasicSet show all
Defined in:
lib/sohm.rb

Direct Known Subclasses

MutableSet

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods inherited from BasicSet

#[], #exists?, #ids, #include?, #sample, #size

Methods included from Collection

#each, #empty?, #fetch, #to_a, #to_json

Constructor Details

#initialize(key, namespace, model) ⇒ Set

Returns a new instance of Set.



426
427
428
429
430
# File 'lib/sohm.rb', line 426

def initialize(key, namespace, model)
  @key = key
  @namespace = namespace
  @model = model
end

Instance Attribute Details

#keyObject (readonly)

Returns the value of attribute key.



422
423
424
# File 'lib/sohm.rb', line 422

def key
  @key
end

#modelObject (readonly)

Returns the value of attribute model.



424
425
426
# File 'lib/sohm.rb', line 424

def model
  @model
end

#namespaceObject (readonly)

Returns the value of attribute namespace.



423
424
425
# File 'lib/sohm.rb', line 423

def namespace
  @namespace
end