class LC::Model

Public Class Methods

find(object_id) click to toggle source
# File lib/leancloud/model.rb, line 8
def self.find(object_id)
  self.new LC::Query.new(self.to_s).eq('objectId',object_id).first
end
new(data=nil) click to toggle source
Calls superclass method LC::Object::new
# File lib/leancloud/model.rb, line 4
def initialize(data=nil)
  super(self.class.to_s,data)
end