Sha256: f44a9cc008fc2603ccd8eb97b7cae5567d276b89734e9751fb2f64e81af9d12d

Contents?: true

Size: 694 Bytes

Versions: 2

Compression:

Stored size: 694 Bytes

Contents

# frozen_string_literal: true

require 'extra/enum'

class CS < Enum

  item :NE, data:  0
  item :DD, data:  5
  item :LC, data: 10
  item :NT, data: 20
  item :VU, data: 30
  item :EN, data: 40
  item :CR, data: 50
  item :EW, data: 60
  item :EX, data: 70

  item_alias :not_evaluated         => :NE,
             :data_deficient        => :DD,
             :least_concern         => :LC,
             :near_threatened       => :NT,
             :vulnerable            => :VU,
             :endangered            => :EN,
             :critically_endangered => :CR,
             :extinct_in_the_wild   => :EW,
             :extinct               => :EX

  freeze
end

ConservationStatus = CS

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
inat-get-0.8.0.12 lib/inat/data/enums/conservationstatus.rb
inat-get-0.8.0.11 lib/inat/data/enums/conservationstatus.rb