Sha256: fcea99c509c54c98b8e22a8ab6cd2921c7cd5573a2ea4a3f72eb26d2eb82f586

Contents?: true

Size: 774 Bytes

Versions: 3

Compression:

Stored size: 774 Bytes

Contents

# frozen_string_literal: true

require_relative '../types/std'
require_relative '../types/extras'
require_relative '../entity'

module INat::Entity
  autoload :Observation, 'inat/data/entity/observation'
end

class INat::Entity::Sound < INat::Data::Entity

  include INat::Data::Types
  include INat::Entity

  table :sounds

  field :license_code, type: LicenseCode, index: true
  field :attribution, type: String
  field :file_url, type: URI
  field :file_content_type, type: Symbol, index: true
  field :play_local, type: Boolean
  field :subtype, type: Symbol, index: true
  field :hidden, type: Boolean, index: true

  links :flags, item_type: Flag

  ignore :native_sound_id       # TODO: разобраться
  ignore :secret_token
  ignore :moderator_actions

end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
inat-get-0.8.0.15 lib/inat/data/entity/sound.rb
inat-get-0.8.0.14 lib/inat/data/entity/sound.rb
inat-get-0.8.0.13 lib/inat/data/entity/sound.rb