Class: Taxonifi::Model::GenericObject
- Defined in:
- lib/taxonifi/model/generic_object.rb
Overview
A generic object, has name, parent, rank properties.
Constant Summary
Constants inherited from Base
Instance Attribute Summary collapse
-
#name ⇒ Object
String.
-
#parent ⇒ Object
Parent object, same class as self.
-
#rank ⇒ Object
String, arbitrarily assignable rank.
Attributes inherited from Base
Method Summary
Methods inherited from Base
#add_properties, #add_property, #ancestor_ids, #ancestors, #build, #delete_property, #initialize, #replace_property
Methods included from SharedClassMethods
Constructor Details
This class inherits a constructor from Taxonifi::Model::Base
Instance Attribute Details
#name ⇒ Object
String
8 9 10 |
# File 'lib/taxonifi/model/generic_object.rb', line 8 def name @name end |
#parent ⇒ Object
Parent object, same class as self
10 11 12 |
# File 'lib/taxonifi/model/generic_object.rb', line 10 def parent @parent end |
#rank ⇒ Object
String, arbitrarily assignable rank
12 13 14 |
# File 'lib/taxonifi/model/generic_object.rb', line 12 def rank @rank end |