In Files

  • resolv.rb

Methods

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 1988
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
            

Commenting is here to help enhance the documentation. For example, sample code, or clarification of the documentation.

If you are posting code samples in your comments, please wrap them in "<pre><code class="ruby" > ... </code></pre>" markup in order to get syntax highlighting.

If you have questions about Ruby or the documentation, please post to one of the Ruby mailing lists. You will get better, faster, help that way.

If you wish to post a correction of the docs, please do so, but also file a bug report so that it can be corrected for the next release. Thank you.

blog comments powered by Disqus