module Parse
Constants
- RESERVED_EVENT_CLASS
- RESERVED_PARSE_CLASS
- VERSION
Public Class Methods
Object(parse_class_name, mod=::Object)
click to toggle source
create or get ParseObject class in the given module
Parameters:¶ ↑
- parse_class_name
-
Parse
class name - mod
-
module where ParseObject is populated
Returns:¶ ↑
subclass of ParseObject for the given parse_class_name
# File lib/parse/object.rb, line 333 def self.Object parse_class_name, mod=::Object if RESERVED_PARSE_CLASS.has_key? parse_class_name.to_s eval RESERVED_PARSE_CLASS[parse_class_name.to_s] else Parse::Object.create parse_class_name, mod \ unless mod.const_defined? parse_class_name mod.const_get parse_class_name end end
batch(&block)
click to toggle source
# File lib/parse/batch.rb, line 44 def self.batch &block Batch.new(&block).run end
batch!(&block)
click to toggle source
# File lib/parse/batch.rb, line 48 def self.batch! &block Batch.new(&block).run! end
Public Instance Methods
Query(parse_class_name=nil)
click to toggle source
# File lib/parse/query.rb, line 373 def Query parse_class_name=nil Query.new parse_class_name end
api_key()
click to toggle source
# File lib/parsecom.rb, line 58 def api_key @@api_key end
api_key=(api_key)
click to toggle source
# File lib/parsecom.rb, line 62 def api_key= api_key @@api_key = api_key end
application_id()
click to toggle source
# File lib/parsecom.rb, line 50 def application_id @@application_id end
application_id=(application_id)
click to toggle source
# File lib/parsecom.rb, line 54 def application_id= application_id @@application_id = application_id end
auto_snake_case()
click to toggle source
# File lib/parsecom.rb, line 84 def auto_snake_case @@auto_snake_case end
auto_snake_case=(auto_snake_case)
click to toggle source
# File lib/parsecom.rb, line 88 def auto_snake_case= auto_snake_case @@auto_snake_case = auto_snake_case end
credentials(hash)
click to toggle source
# File lib/parsecom.rb, line 74 def credentials hash @@application_id = hash[:application_id] @@api_key = hash[:api_key] @@master_key = hash[:master_key] end
credentials=(hash)
click to toggle source
# File lib/parsecom.rb, line 80 def credentials= hash credentials hash end
date(*args)
click to toggle source
# File lib/parse/date.rb, line 52 def date *args ParseDate.parse *args end
dry_run!()
click to toggle source
# File lib/parsecom.rb, line 96 def dry_run! Parse::Client.default.dry_run! end
master_key()
click to toggle source
# File lib/parsecom.rb, line 66 def master_key @@master_key end
master_key=(master_key)
click to toggle source
# File lib/parsecom.rb, line 70 def master_key= master_key @@master_key = master_key end
use_master_key!()
click to toggle source
# File lib/parsecom.rb, line 92 def use_master_key! Parse::Client.default.use_master_key! end