Class: Cluster

Inherits:
Struct
  • Object
show all
Defined in:
lib/bio-cd-hit-report/cluster.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#dataObject

Returns the value of attribute data

Returns:

  • (Object)

    the current value of data



1
2
3
# File 'lib/bio-cd-hit-report/cluster.rb', line 1

def data
  @data
end

#nameObject

Returns the value of attribute name

Returns:

  • (Object)

    the current value of name



1
2
3
# File 'lib/bio-cd-hit-report/cluster.rb', line 1

def name
  @name
end

Instance Method Details

#idObject



4
5
6
# File 'lib/bio-cd-hit-report/cluster.rb', line 4

def id
  name
end

#membersObject



12
13
14
# File 'lib/bio-cd-hit-report/cluster.rb', line 12

def members
  entries.join(',')
end

#sizeObject



8
9
10
# File 'lib/bio-cd-hit-report/cluster.rb', line 8

def size
  entries.size
end