Class: Airdata::DataInjector

Inherits:
Object
  • Object
show all
Defined in:
lib/airdata.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(name) ⇒ DataInjector



41
42
43
44
45
46
47
48
# File 'lib/airdata.rb', line 41

def initialize(name)
  @name = name
  Airdata::DataDownloader.new(@name)
  @local = "#{Dir.tmpdir}/#{@name}.airdata"
  @last_ap = ""
  @records = []
  process
end

Instance Attribute Details

#last_apObject

Returns the value of attribute last_ap.



39
40
41
# File 'lib/airdata.rb', line 39

def last_ap
  @last_ap
end

#localObject

Returns the value of attribute local.



39
40
41
# File 'lib/airdata.rb', line 39

def local
  @local
end

#nameObject

Returns the value of attribute name.



39
40
41
# File 'lib/airdata.rb', line 39

def name
  @name
end

#recordsObject

Returns the value of attribute records.



39
40
41
# File 'lib/airdata.rb', line 39

def records
  @records
end