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.



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

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

Instance Attribute Details

#nameObject (readonly)

Returns the value of attribute name.



133
134
135
# File 'app/services/databasium/model.rb', line 133

def name
  @name
end

#relationsObject (readonly)

Returns the value of attribute relations.



133
134
135
# File 'app/services/databasium/model.rb', line 133

def relations
  @relations
end

#typeObject (readonly)

Returns the value of attribute type.



133
134
135
# File 'app/services/databasium/model.rb', line 133

def type
  @type
end

#validationsObject (readonly)

Returns the value of attribute validations.



133
134
135
# File 'app/services/databasium/model.rb', line 133

def validations
  @validations
end