Sha256: 34a46b68a09a03b1d4df8f2806d44a1619ed50a2b009a660894d26740585aa86
Contents?: true
Size: 698 Bytes
Versions: 10
Compression:
Stored size: 698 Bytes
Contents
# Extends core object with some conversion methods. require 'rubyfox/sfsobject' require 'rubyfox/sfsobject/bulk' require 'rubyfox/sfsobject/schema' require 'rubyfox/sfsobject/accessor' class Hash def to_sfs(schema=:none) if schema == :none Rubyfox::SFSObject::Bulk.to_sfs(self) else Rubyfox::SFSObject::Schema.to_sfs(schema, self) end end end class Rubyfox::SFSObject::Java::SFSObject include Rubyfox::SFSObject::Accessor def to_hash(schema=:none) if schema == :none Rubyfox::SFSObject::Bulk.to_hash(self) else Rubyfox::SFSObject::Schema.to_hash(schema, self) end end class << self alias :from_json :new_from_json_data end end
Version data entries
10 entries across 10 versions & 1 rubygems