Class: SimpleBioC::Collection

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeCollection

Returns a new instance of Collection.



5
6
7
8
9
10
11
# File 'lib/simple_bioc/collection.rb', line 5

def initialize
  @documents = []
  @infons = {}
  @source = ""
  @date = ""
  @key = ""
end

Instance Attribute Details

#dateObject

Returns the value of attribute date.



3
4
5
# File 'lib/simple_bioc/collection.rb', line 3

def date
  @date
end

#documentsObject

Returns the value of attribute documents.



3
4
5
# File 'lib/simple_bioc/collection.rb', line 3

def documents
  @documents
end

#infonsObject

Returns the value of attribute infons.



3
4
5
# File 'lib/simple_bioc/collection.rb', line 3

def infons
  @infons
end

#keyObject

Returns the value of attribute key.



3
4
5
# File 'lib/simple_bioc/collection.rb', line 3

def key
  @key
end

#sourceObject

Returns the value of attribute source.



3
4
5
# File 'lib/simple_bioc/collection.rb', line 3

def source
  @source
end

Instance Method Details

#to_cObject



13
14
15
# File 'lib/simple_bioc/collection.rb', line 13

def to_c
  "Collection(source: #{source}, date: #{date}, key: #{key})"
end