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.



429
430
431
432
433
# File 'lib/sohm.rb', line 429

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

Instance Attribute Details

#keyObject (readonly)

Returns the value of attribute key.



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

def key
  @key
end

#modelObject (readonly)

Returns the value of attribute model.



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

def model
  @model
end

#namespaceObject (readonly)

Returns the value of attribute namespace.



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

def namespace
  @namespace
end