Class: Fabychy::DataTypes::GenericTemplatePayload
- Defined in:
- lib/fabychy/data_types/generic_template_payload.rb
Instance Method Summary collapse
-
#initialize(*params) ⇒ GenericTemplatePayload
constructor
A new instance of GenericTemplatePayload.
- #validations ⇒ Object
Constructor Details
#initialize(*params) ⇒ GenericTemplatePayload
Returns a new instance of GenericTemplatePayload.
5 6 7 8 |
# File 'lib/fabychy/data_types/generic_template_payload.rb', line 5 def initialize *params super(*params) @template_type = 'generic' end |
Instance Method Details
#validations ⇒ Object
10 11 12 13 14 15 16 |
# File 'lib/fabychy/data_types/generic_template_payload.rb', line 10 def validations super.merge( { elements: {required: true, class: [Array], inner_class: [GenericElement] } } ) end |