Class: Zermelo::Records::Collection

Inherits:
Object
  • Object
show all
Defined in:
lib/zermelo/records/collection.rb

Overview

high-level abstraction for a set or list of record ids

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#klassObject (readonly)

Returns the value of attribute klass.



5
6
7
# File 'lib/zermelo/records/collection.rb', line 5

def klass
  @klass
end

#nameObject (readonly)

Returns the value of attribute name.



5
6
7
# File 'lib/zermelo/records/collection.rb', line 5

def name
  @name
end

#typeObject (readonly)

Returns the value of attribute type.



5
6
7
# File 'lib/zermelo/records/collection.rb', line 5

def type
  @type
end