Class: INat::Entity::Sound

Inherits:
Data::Entity show all
Includes:
Data::Types, INat::Entity
Defined in:
lib/inat/data/entity/sound.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

#attributiontype: String

Returns the attribution field.

Returns:

  • (type: String)

    the attribution field



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

field :attribution, type: String

#file_content_typetype: Symbol

Returns the file_content_type field.

Returns:

  • (type: Symbol)

    the file_content_type field



21
# File 'lib/inat/data/entity/sound.rb', line 21

field :file_content_type, type: Symbol, index: true

#file_urltype: URI

Returns the file_url field.

Returns:

  • (type: URI)

    the file_url field



20
# File 'lib/inat/data/entity/sound.rb', line 20

field :file_url, type: URI

#flagsArray<item_type: Flag>

Returns the flags field.

Returns:

  • (Array<item_type: Flag>)

    the flags field



26
# File 'lib/inat/data/entity/sound.rb', line 26

links :flags, item_type: Flag

#hiddentype: Boolean

Returns the hidden field.

Returns:

  • (type: Boolean)

    the hidden field



24
# File 'lib/inat/data/entity/sound.rb', line 24

field :hidden, type: Boolean, index: true

#license_codetype: LicenseCode

Returns the license_code field.

Returns:



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

field :license_code, type: LicenseCode, index: true

#play_localtype: Boolean

Returns the play_local field.

Returns:

  • (type: Boolean)

    the play_local field



22
# File 'lib/inat/data/entity/sound.rb', line 22

field :play_local, type: Boolean

#subtypetype: Symbol

Returns the subtype field.

Returns:

  • (type: Symbol)

    the subtype field



23
# File 'lib/inat/data/entity/sound.rb', line 23

field :subtype, type: Symbol, index: true