Class: Resolv::DNS::Resource::LOC
| Relationships & Source Files | |
| Super Chains via Extension / Inclusion / Inheritance | |
| Class Chain: | |
| Instance Chain: | |
| Inherits: | Resolv::DNS::Resource 
 | 
| Defined in: | lib/resolv.rb | 
Overview
Location resource
Class Method Summary
Instance Attribute Summary
- 
    
      #altitude  
    
    readonly
    The altitude of the LOCabove a reference sphere whose surface sits 100km below the WGS84 spheroid in centimeters as an unsigned 32bit integer.
- 
    
      #hprecision  
    
    readonly
    The horizontal precision using ssize type values in meters using scientific notation as 2 integers of XeY for precision use value/2 e.g. 
- 
    
      #latitude  
    
    readonly
    The latitude for this LOCwhere 2**31 is the equator in thousandths of an arc second as an unsigned 32bit integer.
- 
    
      #longitude  
    
    readonly
    The longitude for this LOCwhere 2**31 is the prime meridian in thousandths of an arc second as an unsigned 32bit integer.
- 
    
      #ssize  
    
    readonly
    The spherical size of this LOCin meters using scientific notation as 2 integers of XeY.
- 
    
      #version  
    
    readonly
    Returns the version value for this LOCrecord which should always be 00.
- 
    
      #vprecision  
    
    readonly
    The vertical precision using ssize type values in meters using scientific notation as 2 integers of XeY for precision use value/2 e.g. 
::Resolv::DNS::Resource - Inherited
| #ttl | Remaining Time To Live for this ::Resolv::DNS::Resource. | 
Constructor Details
    .new(version, ssize, hprecision, vprecision, latitude, longitude, altitude)  ⇒ LOC 
  
# File 'lib/resolv.rb', line 2055
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
Instance Attribute Details
#altitude (readonly)
The altitude of the LOC above a reference sphere whose surface sits 100km below the WGS84 spheroid in centimeters as an unsigned 32bit integer
# File 'lib/resolv.rb', line 2106
attr_reader :altitude
#hprecision (readonly)
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
# File 'lib/resolv.rb', line 2081
attr_reader :hprecision
#latitude (readonly)
The latitude for this LOC where 2**31 is the equator in thousandths of an arc second as an unsigned 32bit integer
# File 'lib/resolv.rb', line 2094
attr_reader :latitude
#longitude (readonly)
The longitude for this LOC where 2**31 is the prime meridian in thousandths of an arc second as an unsigned 32bit integer
# File 'lib/resolv.rb', line 2100
attr_reader :longitude
#ssize (readonly)
The spherical size of this LOC in meters using scientific notation as 2 integers of XeY
# File 'lib/resolv.rb', line 2074
attr_reader :ssize
#version (readonly)
Returns the version value for this LOC record which should always be 00
# File 'lib/resolv.rb', line 2068
attr_reader :version
#vprecision (readonly)
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
# File 'lib/resolv.rb', line 2088
attr_reader :vprecision