Class: MotionDataWrapper::Model
- Inherits:
-
NSManagedObject
- Object
- NSManagedObject
- MotionDataWrapper::Model
- Includes:
- CoreData, FinderMethods, Persistence, Validations
- Defined in:
- lib/motion_data_wrapper/model.rb,
lib/motion_data_wrapper/model/core_data.rb,
lib/motion_data_wrapper/model/persistence.rb,
lib/motion_data_wrapper/model/validations.rb,
lib/motion_data_wrapper/model/finder_methods.rb
Defined Under Namespace
Modules: CoreData, FinderMethods, Persistence, Validations
Instance Method Summary collapse
Methods included from Validations
Methods included from Persistence
#awakeFromFetch, #awakeFromInsert, #destroy, #destroyed?, included, #new_record?, #persisted?, #save, #save!
Methods included from FinderMethods
Methods included from CoreData
Instance Method Details
#inspect ⇒ Object
8 9 10 11 12 13 14 15 |
# File 'lib/motion_data_wrapper/model.rb', line 8 def inspect properties = [] entity.properties.select { |p| p.is_a?(NSAttributeDescription) }.each do |property| properties << "#{property.name}: #{valueForKey(property.name).inspect}" end "#<#{entity.name} #{properties.join(", ")}>" end |