Class: Databasium::Model::ModelData::Attribute
- Inherits:
-
Object
- Object
- Databasium::Model::ModelData::Attribute
- Defined in:
- app/services/databasium/model.rb
Instance Attribute Summary collapse
-
#name ⇒ Object
readonly
Returns the value of attribute name.
-
#relations ⇒ Object
readonly
Returns the value of attribute relations.
-
#type ⇒ Object
readonly
Returns the value of attribute type.
-
#validations ⇒ Object
readonly
Returns the value of attribute validations.
Instance Method Summary collapse
-
#initialize(name:, type:, validations:) ⇒ Attribute
constructor
A new instance of Attribute.
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
#name ⇒ Object (readonly)
Returns the value of attribute name.
133 134 135 |
# File 'app/services/databasium/model.rb', line 133 def name @name end |
#relations ⇒ Object (readonly)
Returns the value of attribute relations.
133 134 135 |
# File 'app/services/databasium/model.rb', line 133 def relations @relations end |
#type ⇒ Object (readonly)
Returns the value of attribute type.
133 134 135 |
# File 'app/services/databasium/model.rb', line 133 def type @type end |
#validations ⇒ Object (readonly)
Returns the value of attribute validations.
133 134 135 |
# File 'app/services/databasium/model.rb', line 133 def validations @validations end |