Class: Zermelo::Records::Collection
- Inherits:
-
Object
- Object
- Zermelo::Records::Collection
- Defined in:
- lib/zermelo/records/collection.rb
Overview
high-level abstraction for a set or list of record ids
Instance Attribute Summary collapse
-
#klass ⇒ Object
readonly
Returns the value of attribute klass.
-
#name ⇒ Object
readonly
Returns the value of attribute name.
-
#type ⇒ Object
readonly
Returns the value of attribute type.
Instance Method Summary collapse
-
#initialize(opts = {}) ⇒ Collection
constructor
A new instance of Collection.
Constructor Details
#initialize(opts = {}) ⇒ Collection
Returns a new instance of Collection.
7 8 9 10 11 |
# File 'lib/zermelo/records/collection.rb', line 7 def initialize(opts = {}) @klass = opts[:class] @name = opts[:name] @type = opts[:type] end |
Instance Attribute Details
#klass ⇒ Object (readonly)
Returns the value of attribute klass.
5 6 7 |
# File 'lib/zermelo/records/collection.rb', line 5 def klass @klass end |
#name ⇒ Object (readonly)
Returns the value of attribute name.
5 6 7 |
# File 'lib/zermelo/records/collection.rb', line 5 def name @name end |
#type ⇒ Object (readonly)
Returns the value of attribute type.
5 6 7 |
# File 'lib/zermelo/records/collection.rb', line 5 def type @type end |