Module: INat::Report::Listers
- Includes:
- Data::Types, INat::Report
- Defined in:
- lib/inat/data/sets/listers.rb
Overview
TODO: возможно, загнать внутрь List?
Constant Summary collapse
- 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| Period::Year[o.observed_on] }
- MONTH =
lambda { |o| Period::Month[o.observed_on] }
- DAY =
lambda { |o| Period::Day[o.observed_on] }
- WINTER =
lambda { |o| Period::Winter[o.observed_on] }
- USER =
lambda { |o| o.user }