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.



668
669
670
# File 'lib/carddb/collection.rb', line 668

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

Instance Attribute Details

#dataObject (readonly)

Returns the value of attribute data.



666
667
668
# File 'lib/carddb/collection.rb', line 666

def data
  @data
end

Instance Method Details

#keyObject



672
673
674
# File 'lib/carddb/collection.rb', line 672

def key
  data['key']
end

#labelObject



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

def label
  data['label']
end

#target_dataset_idObject



688
689
690
# File 'lib/carddb/collection.rb', line 688

def target_dataset_id
  data['targetDatasetId']
end

#target_dataset_keyObject



680
681
682
# File 'lib/carddb/collection.rb', line 680

def target_dataset_key
  data['targetDatasetKey']
end

#target_dataset_nameObject



684
685
686
# File 'lib/carddb/collection.rb', line 684

def target_dataset_name
  data['targetDatasetName']
end