Method: AttrJson::Model.to_type
- Defined in:
- lib/attr_json/model.rb
.to_type(strip_nils: :safely) ⇒ Object
an AttrJson::Record or ::Model attribute
163 164 165 |
# File 'lib/attr_json/model.rb', line 163 def to_type(strip_nils: :safely) @type ||= AttrJson::Type::Model.new(self, strip_nils: strip_nils) end |