Module: Orientdb4r::Property

Defined in:
lib/orientdb4r/rest/model.rb

Overview

This module represents API to OrientDB’s property.

Instance Method Summary collapse

Instance Method Details

#linked_classObject

Gets linked class if the property is a link.



109
110
111
# File 'lib/orientdb4r/rest/model.rb', line 109

def linked_class
  self['linkedClass']
end

#mandatoryObject

Gets the ‘mandatory’ flag.



91
92
93
# File 'lib/orientdb4r/rest/model.rb', line 91

def mandatory
  get_mandatory_attribute :mandatory
end

#maxObject

Gets the maximal allowed value.



121
122
123
# File 'lib/orientdb4r/rest/model.rb', line 121

def max
  self['max']
end

#minObject

Gets the minimal allowed value.



115
116
117
# File 'lib/orientdb4r/rest/model.rb', line 115

def min
  self['min']
end

#nameObject

Gets name of the property.



79
80
81
# File 'lib/orientdb4r/rest/model.rb', line 79

def name
  get_mandatory_attribute :name
end

#not_nullObject

Gets the ‘notNull’ flag.



97
98
99
# File 'lib/orientdb4r/rest/model.rb', line 97

def not_null
  get_mandatory_attribute :notNull
end

#read_onlyObject

Gets the ‘read-only’ flag.



103
104
105
# File 'lib/orientdb4r/rest/model.rb', line 103

def read_only
  get_mandatory_attribute :readonly
end

#typeObject

Gets type of the property.



85
86
87
# File 'lib/orientdb4r/rest/model.rb', line 85

def type
  get_mandatory_attribute :type
end