Class: SimpleBioC::Collection
- Inherits:
-
Object
- Object
- SimpleBioC::Collection
- Defined in:
- lib/simple_bioc/collection.rb
Instance Attribute Summary collapse
-
#date ⇒ Object
Returns the value of attribute date.
-
#documents ⇒ Object
Returns the value of attribute documents.
-
#infons ⇒ Object
Returns the value of attribute infons.
-
#key ⇒ Object
Returns the value of attribute key.
-
#source ⇒ Object
Returns the value of attribute source.
Instance Method Summary collapse
-
#initialize ⇒ Collection
constructor
A new instance of Collection.
- #to_c ⇒ Object
Constructor Details
#initialize ⇒ Collection
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
#date ⇒ Object
Returns the value of attribute date.
3 4 5 |
# File 'lib/simple_bioc/collection.rb', line 3 def date @date end |
#documents ⇒ Object
Returns the value of attribute documents.
3 4 5 |
# File 'lib/simple_bioc/collection.rb', line 3 def documents @documents end |
#infons ⇒ Object
Returns the value of attribute infons.
3 4 5 |
# File 'lib/simple_bioc/collection.rb', line 3 def infons @infons end |
#key ⇒ Object
Returns the value of attribute key.
3 4 5 |
# File 'lib/simple_bioc/collection.rb', line 3 def key @key end |
#source ⇒ Object
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_c ⇒ Object
13 14 15 |
# File 'lib/simple_bioc/collection.rb', line 13 def to_c "Collection(source: #{source}, date: #{date}, key: #{key})" end |