Module: INat::Data::Types

Included in:
Entity::Identification, Entity::Observation, Entity::Photo, Entity::Place, Entity::Project, Entity::ProjectAdmin, Entity::Sound, Entity::Taxon, Query, Report::Listers
Defined in:
lib/inat/data/types/location.rb,
lib/inat/data/types/location.rb,
lib/inat/data/enums/geoprivacy.rb,
lib/inat/data/enums/licensecode.rb,
lib/inat/data/enums/conservationstatus.rb

Defined Under Namespace

Classes: ConservationStatus, GeoPrivacy, IconicTaxa, IdentificationCategory, LicenseCode, Location, ProjectAdminRole, ProjectType, QualityGrade, Radius, Rank, Sector

Class Method Summary collapse

Instance Method Summary collapse

Class Method Details

.radius(latitude, longitude, radius) ⇒ Object



88
89
90
# File 'lib/inat/data/types/location.rb', line 88

def radius latitude, longitude, radius
  Radius::new latitude, longitude, radius
end

.sector(north, east, south, west) ⇒ Object



92
93
94
# File 'lib/inat/data/types/location.rb', line 92

def sector north, east, south, west
  Sector::new north, east, south, west
end

Instance Method Details

#radius(latitude, longitude, radius) ⇒ Object (private)



88
89
90
# File 'lib/inat/data/types/location.rb', line 88

def radius latitude, longitude, radius
  Radius::new latitude, longitude, radius
end

#sector(north, east, south, west) ⇒ Object (private)



92
93
94
# File 'lib/inat/data/types/location.rb', line 92

def sector north, east, south, west
  Sector::new north, east, south, west
end