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.
796 797 798 |
# File 'lib/carddb/collection.rb', line 796 def initialize(data) @data = data || {} end |
Instance Attribute Details
#data ⇒ Object (readonly)
Returns the value of attribute data.
794 795 796 |
# File 'lib/carddb/collection.rb', line 794 def data @data end |
Instance Method Details
#array? ⇒ Boolean
832 833 834 |
# File 'lib/carddb/collection.rb', line 832 def array? data['isArray'] end |
#key ⇒ Object
800 801 802 |
# File 'lib/carddb/collection.rb', line 800 def key data['key'] end |
#label ⇒ Object
804 805 806 |
# File 'lib/carddb/collection.rb', line 804 def label data['label'] end |
#link_alias ⇒ Object
824 825 826 |
# File 'lib/carddb/collection.rb', line 824 def link_alias data['linkAlias'] end |
#link_direction ⇒ Object
828 829 830 |
# File 'lib/carddb/collection.rb', line 828 def link_direction data['linkDirection'] end |
#target_dataset_id ⇒ Object
816 817 818 |
# File 'lib/carddb/collection.rb', line 816 def target_dataset_id data['targetDatasetId'] end |
#target_dataset_key ⇒ Object
808 809 810 |
# File 'lib/carddb/collection.rb', line 808 def target_dataset_key data['targetDatasetKey'] end |
#target_dataset_name ⇒ Object
812 813 814 |
# File 'lib/carddb/collection.rb', line 812 def target_dataset_name data['targetDatasetName'] end |
#target_field_key ⇒ Object
820 821 822 |
# File 'lib/carddb/collection.rb', line 820 def target_field_key data['targetFieldKey'] end |