class Fabychy::DataTypes::ImageAttachment
Public Class Methods
new(*params)
click to toggle source
Calls superclass method
# File lib/fabychy/data_types/image_attachment.rb, line 6 def initialize *params super(*params) @type = 'image' end
Public Instance Methods
validations()
click to toggle source
Calls superclass method
Fabychy::DataTypes::Attachment#validations
# File lib/fabychy/data_types/image_attachment.rb, line 11 def validations super.merge( { payload: {required: true, class: [ImagePayload] } } ) end