Class: MR::ReadModel::JsonStructObjField

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



206
207
208
209
210
211
212
# File 'lib/mr/read_model/fields.rb', line 206

def reader(read_model_data)
  if !(json_data = super(read_model_data)).nil?
    self.struct_class.new(json_data)
  else
    nil
  end
end