class NexosisApi::VocabularySummary
parsed results of a request for vocabulary @since 2.2.0
Attributes
column_name[R]
text-based column name from the datasource @return [String]
created_by_session[R]
The unique id of the session for which this vocabulary was built. @return [String]
created_on[R]
The date on which the vocabulary was created @return [DateTime]
datasource_name[R]
datasource which contained the text column the vocabulary was built from @return [String]
datasource_type[R]
determines if data source was dataSet, View, or other @return [String]
links[R]
hypermedia related to this vocabulary @return [Arrays]
vocabulary_id[R]
unique identifier for this vocabulary @return [String]
Public Class Methods
new(vocab_hash)
click to toggle source
# File lib/nexosis_api/vocabulary_summary.rb, line 5 def initialize(vocab_hash) var_map = { 'id' => :@vocabulary_id, 'dataSourceName' => :@datasource_name, 'columnName' => :@column_name, 'dataSourceType' => :@datasource_type, 'createdOnDate' => :@created_on, 'createdBySessionId' => :@created_by_session } vocab_hash.each { |k, v| instance_variable_set(var_map[k.to_s], v) unless var_map[k.to_s].nil? } @links = vocab_hash['links'].reject(&:nil?).map { |l| NexosisApi::Link.new(l) } end