Class: CardDB::LinkFieldInfo

Inherits:
Object
  • Object
show all
Defined in:
lib/carddb/collection.rb

Overview

Wrapper for LinkFieldInfo

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(data) ⇒ LinkFieldInfo

Returns a new instance of LinkFieldInfo.



678
679
680
# File 'lib/carddb/collection.rb', line 678

def initialize(data)
  @data = data || {}
end

Instance Attribute Details

#dataObject (readonly)

Returns the value of attribute data.



676
677
678
# File 'lib/carddb/collection.rb', line 676

def data
  @data
end

Instance Method Details

#keyObject



682
683
684
# File 'lib/carddb/collection.rb', line 682

def key
  data['key']
end

#labelObject



686
687
688
# File 'lib/carddb/collection.rb', line 686

def label
  data['label']
end

#target_dataset_idObject



698
699
700
# File 'lib/carddb/collection.rb', line 698

def target_dataset_id
  data['targetDatasetId']
end

#target_dataset_keyObject



690
691
692
# File 'lib/carddb/collection.rb', line 690

def target_dataset_key
  data['targetDatasetKey']
end

#target_dataset_nameObject



694
695
696
# File 'lib/carddb/collection.rb', line 694

def target_dataset_name
  data['targetDatasetName']
end