Sha256: dbab4c9f0d5530c5cef87c9a5ac5ea30475b2603f5f59a8918bf8cd9740cffcd

Contents?: true

Size: 670 Bytes

Versions: 2

Compression:

Stored size: 670 Bytes

Contents

# frozen_string_literal: true

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

autoload :Observation, 'inat/data/entity/observation'

class Sound < 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

2 entries across 2 versions & 1 rubygems

Version Path
inat-get-0.8.0.12 lib/inat/data/entity/sound.rb
inat-get-0.8.0.11 lib/inat/data/entity/sound.rb