Class: NexosisApi::ViewData
- Inherits:
-
ViewDefinition
- Object
- ViewDefinition
- NexosisApi::ViewData
- Defined in:
- lib/nexosis_api/view_data.rb
Overview
Class to hold the parsed results of a view data retrieval
Instance Attribute Summary collapse
-
#data ⇒ Array of Hash
An array of hashes representing the processed data of the view.
Attributes inherited from ViewDefinition
#column_metadata, #dataset_name, #is_timeseries, #joins, #view_name
Instance Method Summary collapse
-
#initialize(viewdata_hash) ⇒ ViewData
constructor
A new instance of ViewData.
Methods inherited from ViewDefinition
Constructor Details
#initialize(viewdata_hash) ⇒ ViewData
Returns a new instance of ViewData.
5 6 7 8 |
# File 'lib/nexosis_api/view_data.rb', line 5 def initialize(viewdata_hash) @data = viewdata_hash['data'] super(viewdata_hash.reject { |k| k == 'data' }) end |
Instance Attribute Details
#data ⇒ Array of Hash
An array of hashes representing the processed data of the view
12 13 14 |
# File 'lib/nexosis_api/view_data.rb', line 12 def data @data end |