Class: MR::ReadModel::JsonStructListField

Inherits:
JsonStructField show all
Defined in:
lib/mr/read_model/fields.rb

Instance Attribute Summary

Attributes inherited from JsonStructField

#name, #read_model_class, #struct_class_name

Instance Method Summary collapse

Methods inherited from JsonStructField

#struct_class

Instance Method Details

#reader(read_model_data) ⇒ Object



194
195
196
197
198
199
200
# File 'lib/mr/read_model/fields.rb', line 194

def reader(read_model_data)
  if !(json_datas = super(read_model_data)).nil?
    json_datas.map{ |data| self.struct_class.new(data) }
  else
    nil
  end
end