Class: Taxonifi::Model::GenericObject

Inherits:
Base
  • Object
show all
Defined in:
lib/taxonifi/model/generic_object.rb

Overview

A generic object, has name, parent, rank properties.

Constant Summary

Constants inherited from Base

Base::ATTRIBUTES

Instance Attribute Summary collapse

Attributes inherited from Base

#id, #properties, #row_number

Method Summary

Methods inherited from Base

#add_properties, #add_property, #ancestor_ids, #ancestors, #build, #delete_property, #initialize, #replace_property

Methods included from SharedClassMethods

included

Constructor Details

This class inherits a constructor from Taxonifi::Model::Base

Instance Attribute Details

#nameObject

String



8
9
10
# File 'lib/taxonifi/model/generic_object.rb', line 8

def name
  @name
end

#parentObject

Parent object, same class as self



10
11
12
# File 'lib/taxonifi/model/generic_object.rb', line 10

def parent
  @parent
end

#rankObject

String, arbitrarily assignable rank



12
13
14
# File 'lib/taxonifi/model/generic_object.rb', line 12

def rank
  @rank
end