Module: Orientdb4r::Property
- Defined in:
- lib/orientdb4r/rest/model.rb
Overview
This module represents API to OrientDB’s property.
Instance Method Summary collapse
-
#linked_class ⇒ Object
Gets linked class if the property is a link.
-
#mandatory ⇒ Object
Gets the ‘mandatory’ flag.
-
#max ⇒ Object
Gets the maximal allowed value.
-
#min ⇒ Object
Gets the minimal allowed value.
-
#name ⇒ Object
Gets name of the property.
-
#not_null ⇒ Object
Gets the ‘notNull’ flag.
-
#type ⇒ Object
Gets type of the property.
Instance Method Details
#linked_class ⇒ Object
Gets linked class if the property is a link.
103 104 105 |
# File 'lib/orientdb4r/rest/model.rb', line 103 def linked_class self['linkedClass'] end |
#mandatory ⇒ Object
Gets the ‘mandatory’ flag.
91 92 93 |
# File 'lib/orientdb4r/rest/model.rb', line 91 def mandatory get_mandatory_attribute :mandatory end |
#max ⇒ Object
Gets the maximal allowed value.
115 116 117 |
# File 'lib/orientdb4r/rest/model.rb', line 115 def max self['max'] end |
#min ⇒ Object
Gets the minimal allowed value.
109 110 111 |
# File 'lib/orientdb4r/rest/model.rb', line 109 def min self['min'] end |
#name ⇒ Object
Gets name of the property.
79 80 81 |
# File 'lib/orientdb4r/rest/model.rb', line 79 def name get_mandatory_attribute :name end |
#not_null ⇒ Object
Gets the ‘notNull’ flag.
97 98 99 |
# File 'lib/orientdb4r/rest/model.rb', line 97 def not_null get_mandatory_attribute :notNull end |
#type ⇒ Object
Gets type of the property.
85 86 87 |
# File 'lib/orientdb4r/rest/model.rb', line 85 def type get_mandatory_attribute :type end |