Class: INat::Entity::ProjectAdmin

Inherits:
Data::Entity show all
Includes:
Data::Types, INat::Entity
Defined in:
lib/inat/data/entity/projectadmin.rb

Instance Attribute Summary collapse

Attributes inherited from Data::Entity

#id

Method Summary

Methods included from Data::Types

#radius, radius, #sector, sector

Methods inherited from Data::Entity

by_id, #complete?, ddl, fetch, from_db_rows, #get, #init, #initialize, load, load_file, parse, read, #save, #to_db, #update

Methods included from App::Logger::DSL

#debug, debug, echo, #echo, error, #error, #info, info, log, #log, #warning, warning

Methods inherited from Data::Model

DDL, api_limit, api_part, api_path, backs, block, field, fields, has_path?, has_table?, #ignore, #initialize, links, #post_update, #process?, #saved?, table, #to_h, #update

Constructor Details

This class inherits a constructor from INat::Data::Entity

Instance Attribute Details

#projecttype: Project

Returns the project field.

Returns:

  • (type: Project)

    the project field



17
# File 'lib/inat/data/entity/projectadmin.rb', line 17

field :project, type: Project, index: true

#roletype: ProjectAdminRole

Returns the role field.

Returns:



18
# File 'lib/inat/data/entity/projectadmin.rb', line 18

field :role, type: ProjectAdminRole, index: true, required: true

#usertype: User

Returns the user field.

Returns:

  • (type: User)

    the user field



19
# File 'lib/inat/data/entity/projectadmin.rb', line 19

field :user, type: User, index: true, required: true