Class: Phoebe::Models::Data::Observations::Recent::HistoricListParams

Inherits:
Internal::Type::BaseModel show all
Extended by:
Internal::Type::RequestParameters::Converter
Includes:
Internal::Type::RequestParameters
Defined in:
lib/phoebe/models/data/observations/recent/historic_list_params.rb

Overview

Defined Under Namespace

Modules: Cat, Detail, Rank

Instance Attribute Summary collapse

Attributes included from Internal::Type::RequestParameters

#request_options

Class Method Summary collapse

Instance Method Summary collapse

Methods included from Internal::Type::RequestParameters::Converter

dump_request

Methods included from Internal::Type::RequestParameters

included

Methods inherited from Internal::Type::BaseModel

==, #==, #[], coerce, #deconstruct_keys, #deep_to_h, dump, fields, hash, #hash, inherited, inspect, #inspect, known_fields, optional, recursively_to_h, required, #to_h, #to_json, #to_s, to_sorbet_type, #to_yaml

Methods included from Internal::Type::Converter

#coerce, coerce, #dump, dump, #inspect, inspect, meta_info, new_coerce_state, type_info

Methods included from Internal::Util::SorbetRuntimeSupport

#const_missing, #define_sorbet_constant!, #sorbet_constant_defined?, #to_sorbet_type, to_sorbet_type

Constructor Details

#initialize(region_code:, y_:, m:, d:, cat: nil, detail: nil, hotspot: nil, include_provisional: nil, max_results: nil, r: nil, rank: nil, spp_locale: nil, request_options: {}) ⇒ Object

Parameters:



# File 'lib/phoebe/models/data/observations/recent/historic_list_params.rb', line 81

Instance Attribute Details

#catSymbol, ...

Only fetch observations from these taxonomic categories



37
# File 'lib/phoebe/models/data/observations/recent/historic_list_params.rb', line 37

optional :cat, enum: -> { Phoebe::Data::Observations::Recent::HistoricListParams::Cat }

#dInteger

Returns:

  • (Integer)


31
# File 'lib/phoebe/models/data/observations/recent/historic_list_params.rb', line 31

required :d, Integer

#detailSymbol, ...

Include a subset (simple), or all (full), of the fields available.



43
# File 'lib/phoebe/models/data/observations/recent/historic_list_params.rb', line 43

optional :detail, enum: -> { Phoebe::Data::Observations::Recent::HistoricListParams::Detail }

#hotspotBoolean?

Only fetch observations from hotspots

Returns:

  • (Boolean, nil)


49
# File 'lib/phoebe/models/data/observations/recent/historic_list_params.rb', line 49

optional :hotspot, Phoebe::Internal::Type::Boolean

#include_provisionalBoolean?

Include observations which have not yet been reviewed.

Returns:

  • (Boolean, nil)


55
# File 'lib/phoebe/models/data/observations/recent/historic_list_params.rb', line 55

optional :include_provisional, Phoebe::Internal::Type::Boolean

#mInteger

Returns:

  • (Integer)


26
# File 'lib/phoebe/models/data/observations/recent/historic_list_params.rb', line 26

required :m, Integer

#max_resultsInteger?

Only fetch this number of observations

Returns:

  • (Integer, nil)


61
# File 'lib/phoebe/models/data/observations/recent/historic_list_params.rb', line 61

optional :max_results, Integer

#rArray<String>?

Fetch observations from up to 50 locations

Returns:

  • (Array<String>, nil)


67
# File 'lib/phoebe/models/data/observations/recent/historic_list_params.rb', line 67

optional :r, Phoebe::Internal::Type::ArrayOf[String]

#rankSymbol, ...

Include latest observation of the day, or the first added



73
# File 'lib/phoebe/models/data/observations/recent/historic_list_params.rb', line 73

optional :rank, enum: -> { Phoebe::Data::Observations::Recent::HistoricListParams::Rank }

#region_codeString

Returns:

  • (String)


16
# File 'lib/phoebe/models/data/observations/recent/historic_list_params.rb', line 16

required :region_code, String

#spp_localeString?

Use this language for species common names

Returns:

  • (String, nil)


79
# File 'lib/phoebe/models/data/observations/recent/historic_list_params.rb', line 79

optional :spp_locale, String

#y_Integer

Returns:

  • (Integer)


21
# File 'lib/phoebe/models/data/observations/recent/historic_list_params.rb', line 21

required :y_, Integer

Class Method Details

.valuesArray<Symbol>

Returns:

  • (Array<Symbol>)


# File 'lib/phoebe/models/data/observations/recent/historic_list_params.rb', line 121