Class: Resolv::DNS::Resource::LOC (Ruby 2.7.3)
Description: Class : Resolv::DNS::Resource::LOC - Ruby 2.7.3

### Home Classes Methods

### In Files

- resolv.rb

### Parent

Resolv::DNS::Resource

### Methods

- ::new

### Class/Module Index

Quicksearch

- Resolv
- Resolv::DNS
- Resolv::DNS::Config
- Resolv::DNS::Config::NXDomain
- Resolv::DNS::Config::OtherResolvError
- Resolv::DNS::DecodeError
- Resolv::DNS::EncodeError
- Resolv::DNS::Name
- Resolv::DNS::Query
- Resolv::DNS::Requester
- Resolv::DNS::Requester::RequestError
- Resolv::DNS::Resource
- Resolv::DNS::Resource::ANY
- Resolv::DNS::Resource::CNAME
- Resolv::DNS::Resource::DomainName
- Resolv::DNS::Resource::Generic
- Resolv::DNS::Resource::HINFO
- Resolv::DNS::Resource::IN
- Resolv::DNS::Resource::IN::A
- Resolv::DNS::Resource::IN::AAAA
- Resolv::DNS::Resource::IN::SRV
- Resolv::DNS::Resource::IN::WKS
- Resolv::DNS::Resource::LOC
- Resolv::DNS::Resource::MINFO
- Resolv::DNS::Resource::MX
- Resolv::DNS::Resource::NS
- Resolv::DNS::Resource::PTR
- Resolv::DNS::Resource::SOA
- Resolv::DNS::Resource::TXT
- Resolv::Hosts
- Resolv::IPv4
- Resolv::IPv6
- Resolv::LOC
- Resolv::LOC::Alt
- Resolv::LOC::Coord
- Resolv::LOC::Size
- Resolv::MDNS
- Resolv::ResolvError
- Resolv::ResolvTimeout

No matching classes.

# Resolv::DNS::Resource::LOC

Location resource

### Attributes

altitude[R]

The altitude of the `LOC` above a reference sphere whose surface sits 100km below the WGS84 spheroid in centimeters as an unsigned 32bit integer

hprecision[R]

The horizontal precision using ssize type values in meters using scientific notation as 2 integers of XeY for precision use value/2 e.g. 2m = +/-1m

latitude[R]

The latitude for this `LOC` where 2**31 is the equator in thousandths of an arc second as an unsigned 32bit integer

longitude[R]

The longitude for this `LOC` where 2**31 is the prime meridian in thousandths of an arc second as an unsigned 32bit integer

ssize[R]

The spherical size of this `LOC` in meters using scientific notation as 2 integers of XeY

version[R]

Returns the version value for this `LOC` record which should always be 00

vprecision[R]

The vertical precision using ssize type values in meters using scientific notation as 2 integers of XeY for precision use value/2 e.g. 2m = +/-1m

### Public Class Methods

new(version, ssize, hprecision, vprecision, latitude, longitude, altitude) click to toggle source

                   # File resolv.rb, line 2052
    def initialize(version, ssize, hprecision, vprecision, latitude, longitude, altitude)
      @version    = version
      @ssize      = Resolv::LOC::Size.create(ssize)
      @hprecision = Resolv::LOC::Size.create(hprecision)
      @vprecision = Resolv::LOC::Size.create(vprecision)
      @latitude   = Resolv::LOC::Coord.create(latitude)
      @longitude  = Resolv::LOC::Coord.create(longitude)
      @altitude   = Resolv::LOC::Alt.create(altitude)
    end