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
- #array? ⇒ Boolean
-
#initialize(data) ⇒ LinkFieldInfo
constructor
A new instance of LinkFieldInfo.
- #key ⇒ Object
- #label ⇒ Object
- #link_alias ⇒ Object
- #link_direction ⇒ Object
- #target_dataset_id ⇒ Object
- #target_dataset_key ⇒ Object
- #target_dataset_name ⇒ Object
- #target_field_key ⇒ Object
Constructor Details
#initialize(data) ⇒ LinkFieldInfo
Returns a new instance of LinkFieldInfo.
786 787 788 |
# File 'lib/carddb/collection.rb', line 786 def initialize(data) @data = data || {} end |
Instance Attribute Details
#data ⇒ Object (readonly)
Returns the value of attribute data.
784 785 786 |
# File 'lib/carddb/collection.rb', line 784 def data @data end |
Instance Method Details
#array? ⇒ Boolean
822 823 824 |
# File 'lib/carddb/collection.rb', line 822 def array? data['isArray'] end |
#key ⇒ Object
790 791 792 |
# File 'lib/carddb/collection.rb', line 790 def key data['key'] end |
#label ⇒ Object
794 795 796 |
# File 'lib/carddb/collection.rb', line 794 def label data['label'] end |
#link_alias ⇒ Object
814 815 816 |
# File 'lib/carddb/collection.rb', line 814 def link_alias data['linkAlias'] end |
#link_direction ⇒ Object
818 819 820 |
# File 'lib/carddb/collection.rb', line 818 def link_direction data['linkDirection'] end |
#target_dataset_id ⇒ Object
806 807 808 |
# File 'lib/carddb/collection.rb', line 806 def target_dataset_id data['targetDatasetId'] end |
#target_dataset_key ⇒ Object
798 799 800 |
# File 'lib/carddb/collection.rb', line 798 def target_dataset_key data['targetDatasetKey'] end |
#target_dataset_name ⇒ Object
802 803 804 |
# File 'lib/carddb/collection.rb', line 802 def target_dataset_name data['targetDatasetName'] end |
#target_field_key ⇒ Object
810 811 812 |
# File 'lib/carddb/collection.rb', line 810 def target_field_key data['targetFieldKey'] end |