Class: NexosisApi::DatasetJoinTarget
- Inherits:
-
Object
- Object
- NexosisApi::DatasetJoinTarget
- Defined in:
- lib/nexosis_api/dataset_jointarget.rb
Overview
Specifies the name of a dataset to use as the join datasource
Instance Attribute Summary collapse
-
#dataset_name ⇒ String
The name of the dataset that will be participating in the join.
Instance Method Summary collapse
-
#initialize(ds_join_hash) ⇒ DatasetJoinTarget
constructor
A new instance of DatasetJoinTarget.
-
#to_hash ⇒ Object
provides a custom hash to match api requests.
Constructor Details
permalink #initialize(ds_join_hash) ⇒ DatasetJoinTarget
Returns a new instance of DatasetJoinTarget.
6 7 8 |
# File 'lib/nexosis_api/dataset_jointarget.rb', line 6 def initialize(ds_join_hash) @dataset_name = ds_join_hash['name'] unless ds_join_hash.nil? end |
Instance Attribute Details
permalink #dataset_name ⇒ String
The name of the dataset that will be participating in the join
12 13 14 |
# File 'lib/nexosis_api/dataset_jointarget.rb', line 12 def dataset_name @dataset_name end |
Instance Method Details
permalink #to_hash ⇒ Object
provides a custom hash to match api requests
15 16 17 |
# File 'lib/nexosis_api/dataset_jointarget.rb', line 15 def to_hash { 'dataSet' => { 'name' => dataset_name } } end |