Class: Fabychy::DataTypes::Element
- Inherits:
-
Base
- Object
- Base
- Fabychy::DataTypes::Element
show all
- Defined in:
- lib/fabychy/data_types/element.rb
Instance Method Summary
collapse
Constructor Details
#initialize(*params) ⇒ Element
8
9
10
|
# File 'lib/fabychy/data_types/element.rb', line 8
def initialize *params
super(*params)
end
|
Instance Method Details
#validations ⇒ Object
12
13
14
15
16
17
18
|
# File 'lib/fabychy/data_types/element.rb', line 12
def validations
{
title: { required: true, class: [String] },
subtitle: { required: false, class: [String] },
image_url: { required: false, drop_empty: true, class: [String] },
}
end
|