Class: Snuffle::Summary
- Inherits:
-
Object
- Object
- Snuffle::Summary
- Includes:
- PoroPlus
- Defined in:
- lib/snuffle/summary.rb
Instance Attribute Summary collapse
-
#arg_clumps ⇒ Object
Returns the value of attribute arg_clumps.
-
#class_name ⇒ Object
Returns the value of attribute class_name.
-
#cohorts ⇒ Object
Returns the value of attribute cohorts.
-
#latent_objects ⇒ Object
Returns the value of attribute latent_objects.
-
#path_to_file ⇒ Object
Returns the value of attribute path_to_file.
-
#source ⇒ Object
Returns the value of attribute source.
Instance Method Summary collapse
Instance Attribute Details
#arg_clumps ⇒ Object
Returns the value of attribute arg_clumps.
6 7 8 |
# File 'lib/snuffle/summary.rb', line 6 def arg_clumps @arg_clumps end |
#class_name ⇒ Object
Returns the value of attribute class_name.
5 6 7 |
# File 'lib/snuffle/summary.rb', line 5 def class_name @class_name end |
#cohorts ⇒ Object
Returns the value of attribute cohorts.
5 6 7 |
# File 'lib/snuffle/summary.rb', line 5 def cohorts @cohorts end |
#latent_objects ⇒ Object
Returns the value of attribute latent_objects.
5 6 7 |
# File 'lib/snuffle/summary.rb', line 5 def latent_objects @latent_objects end |
#path_to_file ⇒ Object
Returns the value of attribute path_to_file.
5 6 7 |
# File 'lib/snuffle/summary.rb', line 5 def path_to_file @path_to_file end |
#source ⇒ Object
Returns the value of attribute source.
5 6 7 |
# File 'lib/snuffle/summary.rb', line 5 def source @source end |
Instance Method Details
#filename ⇒ Object
16 17 18 |
# File 'lib/snuffle/summary.rb', line 16 def filename path_to_file.split("/")[-1] end |
#has_results? ⇒ Boolean
8 9 10 |
# File 'lib/snuffle/summary.rb', line 8 def has_results? self.cohorts.count != 0 || self.latent_objects.count != 0 || self.arg_clumps.count != 0 end |
#path_to_results ⇒ Object
12 13 14 |
# File 'lib/snuffle/summary.rb', line 12 def path_to_results self.path_to_file.split("/")[0..-2].join('/') end |