Class: Phoebe::Models::Data::Observations::Recent::NotableListParams

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

Overview

Defined Under Namespace

Modules: Detail

Instance Attribute Summary collapse

Attributes included from Internal::Type::RequestParameters

#request_options

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:, back: nil, detail: nil, hotspot: nil, max_results: nil, r: nil, spp_locale: nil, request_options: {}) ⇒ Object

Parameters:

  • region_code (String)
  • back (Integer) (defaults to: nil)

    The number of days back to fetch observations.

  • detail (Symbol, Phoebe::Models::Data::Observations::Recent::NotableListParams::Detail) (defaults to: nil)

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

  • hotspot (Boolean) (defaults to: nil)

    Only fetch observations from hotspots

  • max_results (Integer) (defaults to: nil)

    Only fetch this number of observations

  • r (Array<String>) (defaults to: nil)

    Fetch observations from up to 10 locations

  • spp_locale (String) (defaults to: nil)

    Use this language for species common names

  • request_options (Phoebe::RequestOptions, Hash{Symbol=>Object}) (defaults to: {})


# File 'lib/phoebe/models/data/observations/recent/notable_list_params.rb', line 54

Instance Attribute Details

#backInteger?

The number of days back to fetch observations.

Returns:

  • (Integer, nil)


22
# File 'lib/phoebe/models/data/observations/recent/notable_list_params.rb', line 22

optional :back, Integer

#detailSymbol, ...

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



28
# File 'lib/phoebe/models/data/observations/recent/notable_list_params.rb', line 28

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

#hotspotBoolean?

Only fetch observations from hotspots

Returns:

  • (Boolean, nil)


34
# File 'lib/phoebe/models/data/observations/recent/notable_list_params.rb', line 34

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

#max_resultsInteger?

Only fetch this number of observations

Returns:

  • (Integer, nil)


40
# File 'lib/phoebe/models/data/observations/recent/notable_list_params.rb', line 40

optional :max_results, Integer

#rArray<String>?

Fetch observations from up to 10 locations

Returns:

  • (Array<String>, nil)


46
# File 'lib/phoebe/models/data/observations/recent/notable_list_params.rb', line 46

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

#region_codeString

Returns:

  • (String)


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

required :region_code, String

#spp_localeString?

Use this language for species common names

Returns:

  • (String, nil)


52
# File 'lib/phoebe/models/data/observations/recent/notable_list_params.rb', line 52

optional :spp_locale, String