Class: Sohm::Set
Direct Known Subclasses
Instance Attribute Summary collapse
-
#key ⇒ Object
readonly
Returns the value of attribute key.
-
#model ⇒ Object
readonly
Returns the value of attribute model.
-
#namespace ⇒ Object
readonly
Returns the value of attribute namespace.
Instance Method Summary collapse
-
#initialize(key, namespace, model) ⇒ Set
constructor
A new instance of Set.
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
#key ⇒ Object (readonly)
Returns the value of attribute key.
425 426 427 |
# File 'lib/sohm.rb', line 425 def key @key end |
#model ⇒ Object (readonly)
Returns the value of attribute model.
427 428 429 |
# File 'lib/sohm.rb', line 427 def model @model end |
#namespace ⇒ Object (readonly)
Returns the value of attribute namespace.
426 427 428 |
# File 'lib/sohm.rb', line 426 def namespace @namespace end |