Class: NexosisApi::DatasetJoinTarget

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

Overview

Specifies the name of a dataset to use as the join datasource

See Also:

Since:

  • 1.2.3

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(ds_join_hash) ⇒ DatasetJoinTarget

Returns a new instance of DatasetJoinTarget.

Since:

  • 1.2.3



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

#dataset_nameString

The name of the dataset that will be participating in the join

Returns:

  • (String)

    name of the dataset provided for this join

Since:

  • 1.2.3



12
13
14
# File 'lib/nexosis_api/dataset_jointarget.rb', line 12

def dataset_name
  @dataset_name
end

Instance Method Details

#to_hashObject

provides a custom hash to match api requests

Since:

  • 1.2.3



15
16
17
# File 'lib/nexosis_api/dataset_jointarget.rb', line 15

def to_hash
  { 'dataSet' => { 'name' => dataset_name } }
end