Use with RubyMotion


#1

I’ve successfully built a RubyMotion app where I can manage documents. Looking at CBLModel, however, it uses declare properties which is something that’s not done in ruby. Are there method calls that can be used to define model attributes explicitly?


#2

I believe so, there should be get/set methods for property declaration. A detail is available for CBLModel here:

http://couchbase.github.io/couchbase-lite-ios/docs/html/interfaceCBLModel.html#a67887be961f9ce2d0d3b07db4fc3db5b


#3

These are instance methods that set and get properties without type conversion. I was hoping there might be class-level methods for setting up the attributes with type conversion as if they had been declared as properties. Not sure where to look in source for this, if anyone can provide a reference.