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.
846 847 848 |
# File 'lib/carddb/collection.rb', line 846 def initialize(data) @data = data || {} end |
Instance Attribute Details
#data ⇒ Object (readonly)
Returns the value of attribute data.
844 845 846 |
# File 'lib/carddb/collection.rb', line 844 def data @data end |
Instance Method Details
#array? ⇒ Boolean
882 883 884 |
# File 'lib/carddb/collection.rb', line 882 def array? data['isArray'] end |
#key ⇒ Object
850 851 852 |
# File 'lib/carddb/collection.rb', line 850 def key data['key'] end |
#label ⇒ Object
854 855 856 |
# File 'lib/carddb/collection.rb', line 854 def label data['label'] end |
#link_alias ⇒ Object
874 875 876 |
# File 'lib/carddb/collection.rb', line 874 def link_alias data['linkAlias'] end |
#link_direction ⇒ Object
878 879 880 |
# File 'lib/carddb/collection.rb', line 878 def link_direction data['linkDirection'] end |
#target_dataset_id ⇒ Object
866 867 868 |
# File 'lib/carddb/collection.rb', line 866 def target_dataset_id data['targetDatasetId'] end |
#target_dataset_key ⇒ Object
858 859 860 |
# File 'lib/carddb/collection.rb', line 858 def target_dataset_key data['targetDatasetKey'] end |
#target_dataset_name ⇒ Object
862 863 864 |
# File 'lib/carddb/collection.rb', line 862 def target_dataset_name data['targetDatasetName'] end |
#target_field_key ⇒ Object
870 871 872 |
# File 'lib/carddb/collection.rb', line 870 def target_field_key data['targetFieldKey'] end |