Class: Databasium::Model::ModelData::Attribute

Inherits:
Object
  • Object
show all
Defined in:
app/services/databasium/model.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(name:, type:, validations:) ⇒ Attribute

Returns a new instance of Attribute.



139
140
141
142
143
# File 'app/services/databasium/model.rb', line 139

def initialize(name:, type:, validations:)
  @name = name
  @type = type
  @validations = validations
end

Instance Attribute Details

#nameObject (readonly)

Returns the value of attribute name.



137
138
139
# File 'app/services/databasium/model.rb', line 137

def name
  @name
end

#relationsObject (readonly)

Returns the value of attribute relations.



137
138
139
# File 'app/services/databasium/model.rb', line 137

def relations
  @relations
end

#typeObject (readonly)

Returns the value of attribute type.



137
138
139
# File 'app/services/databasium/model.rb', line 137

def type
  @type
end

#validationsObject (readonly)

Returns the value of attribute validations.



137
138
139
# File 'app/services/databasium/model.rb', line 137

def validations
  @validations
end