Class: Airdata::DataInjector
- Inherits:
-
Object
- Object
- Airdata::DataInjector
- Defined in:
- lib/airdata.rb
Instance Attribute Summary collapse
-
#last_ap ⇒ Object
Returns the value of attribute last_ap.
-
#local ⇒ Object
Returns the value of attribute local.
-
#name ⇒ Object
Returns the value of attribute name.
-
#records ⇒ Object
Returns the value of attribute records.
Instance Method Summary collapse
-
#initialize(name) ⇒ DataInjector
constructor
A new instance of DataInjector.
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_ap ⇒ Object
Returns the value of attribute last_ap.
39 40 41 |
# File 'lib/airdata.rb', line 39 def last_ap @last_ap end |
#local ⇒ Object
Returns the value of attribute local.
39 40 41 |
# File 'lib/airdata.rb', line 39 def local @local end |
#name ⇒ Object
Returns the value of attribute name.
39 40 41 |
# File 'lib/airdata.rb', line 39 def name @name end |
#records ⇒ Object
Returns the value of attribute records.
39 40 41 |
# File 'lib/airdata.rb', line 39 def records @records end |