Class: CardDB::LinkFieldInfo
- Inherits:
-
Object
- Object
- CardDB::LinkFieldInfo
- Defined in:
- lib/carddb/collection.rb
Overview
Wrapper for LinkFieldInfo
Instance Attribute Summary collapse
-
#data ⇒ Object
readonly
Returns the value of attribute data.
Instance Method Summary collapse
-
#initialize(data) ⇒ LinkFieldInfo
constructor
A new instance of LinkFieldInfo.
- #key ⇒ Object
- #label ⇒ Object
- #target_dataset_id ⇒ Object
- #target_dataset_key ⇒ Object
- #target_dataset_name ⇒ Object
Constructor Details
#initialize(data) ⇒ LinkFieldInfo
Returns a new instance of LinkFieldInfo.
662 663 664 |
# File 'lib/carddb/collection.rb', line 662 def initialize(data) @data = data || {} end |
Instance Attribute Details
#data ⇒ Object (readonly)
Returns the value of attribute data.
660 661 662 |
# File 'lib/carddb/collection.rb', line 660 def data @data end |
Instance Method Details
#key ⇒ Object
666 667 668 |
# File 'lib/carddb/collection.rb', line 666 def key data['key'] end |
#label ⇒ Object
670 671 672 |
# File 'lib/carddb/collection.rb', line 670 def label data['label'] end |
#target_dataset_id ⇒ Object
682 683 684 |
# File 'lib/carddb/collection.rb', line 682 def target_dataset_id data['targetDatasetId'] end |
#target_dataset_key ⇒ Object
674 675 676 |
# File 'lib/carddb/collection.rb', line 674 def target_dataset_key data['targetDatasetKey'] end |
#target_dataset_name ⇒ Object
678 679 680 |
# File 'lib/carddb/collection.rb', line 678 def target_dataset_name data['targetDatasetName'] end |