Class: APDM::AdTech::Data
- Inherits:
-
Object
- Object
- APDM::AdTech::Data
- Defined in:
- lib/apdm/ad_tech/data.rb
Instance Attribute Summary collapse
-
#data ⇒ Object
readonly
Returns the value of attribute data.
Instance Method Summary collapse
- #for(channel) ⇒ Object
-
#initialize(path_to_csv_file) ⇒ Data
constructor
A new instance of Data.
Constructor Details
#initialize(path_to_csv_file) ⇒ Data
Returns a new instance of Data.
5 6 7 |
# File 'lib/apdm/ad_tech/data.rb', line 5 def initialize(path_to_csv_file) @data = read(path_to_csv_file) end |
Instance Attribute Details
#data ⇒ Object (readonly)
Returns the value of attribute data.
4 5 6 |
# File 'lib/apdm/ad_tech/data.rb', line 4 def data @data end |
Instance Method Details
#for(channel) ⇒ Object
9 10 11 |
# File 'lib/apdm/ad_tech/data.rb', line 9 def for(channel) data[channel.ad_tech_id] end |