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

#mandatoryObject

Gets the ‘mandatory’ flag.



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

def mandatory
  get_mandatory_attribute :mandatory
end

#maxObject

Gets the maximal allowed value.



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

def max
  self['max']
end

#minObject

Gets the minimal allowed value.



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

def min
  self['min']
end

#nameObject

Gets name of the property.



73
74
75
# File 'lib/orientdb4r/rest/model.rb', line 73

def name
  get_mandatory_attribute :name
end

#not_nullObject

Gets the ‘notNull’ flag.



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

def not_null
  get_mandatory_attribute :notNull
end

#typeObject

Gets type of the property.



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

def type
  get_mandatory_attribute :type
end