Sha256: 0a780b4b93e9c6d4dfba375c6535c54199cf3392e245e9156f25e50535ccd2bf

Contents?: true

Size: 627 Bytes

Versions: 1

Compression:

Stored size: 627 Bytes

Contents

# frozen_string_literal: true

require_relative 'wrappers'

module Listers

  SPECIES = lambda { |o| o.normalized_taxon(Rank::COMPLEX .. Rank::HYBRID)  }
  GENUS   = lambda { |o| o.normalized_taxon(Rank::GENUS)                    }
  FAMILY  = lambda { |o| o.normalized_taxon(Rank::FAMILY)                   }
  YEAR    = lambda { |o| Year[o.observed_on]                                }
  MONTH   = lambda { |o| Month[o.observed_on]                               }
  DAY     = lambda { |o| Day[o.observed_on]                                 }
  USER    = lambda { |o| o.user                                             }

end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
inat-get-0.8.0.11 lib/inat/data/sets/listers.rb