Class: INat::Entity::Photo

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



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

field :attribution, type: String

#flagsArray<item_type: Flag>

Returns the flags field.

Returns:

  • (Array<item_type: Flag>)

    the flags field



29
# File 'lib/inat/data/entity/photo.rb', line 29

links :flags, item_type: Flag

#hiddentype: Boolean

Returns the hidden field.

Returns:

  • (type: Boolean)

    the hidden field



27
# File 'lib/inat/data/entity/photo.rb', line 27

field :hidden, type: Boolean, index: true

#large_urltype: URI

Returns the large_url field.

Returns:

  • (type: URI)

    the large_url field



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

field :large_url, type: URI

#license_codetype: LicenseCode

Returns the license_code field.

Returns:



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

field :license_code, type: LicenseCode, index: true

#medium_urltype: URI

Returns the medium_url field.

Returns:

  • (type: URI)

    the medium_url field



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

field :medium_url, type: URI

#native_page_urltype: URI

Returns the native_page_url field.

Returns:

  • (type: URI)

    the native_page_url field



34
# File 'lib/inat/data/entity/photo.rb', line 34

field :native_page_url, type: URI

#original_urltype: URI

Returns the original_url field.

Returns:

  • (type: URI)

    the original_url field



25
# File 'lib/inat/data/entity/photo.rb', line 25

field :original_url, type: URI

#small_urltype: URI

Returns the small_url field.

Returns:

  • (type: URI)

    the small_url field



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

field :small_url, type: URI

#square_urltype: URI

Returns the square_url field.

Returns:

  • (type: URI)

    the square_url field



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

field :square_url, type: URI

#urltype: URI

Returns the url field.

Returns:

  • (type: URI)

    the url field



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

field :url, type: URI, required: true