Class: Rubyfox::SFSObject::Java::SFSObject

Inherits:
Object
  • Object
show all
Includes:
Accessor
Defined in:
lib/rubyfox/sfsobject/core_ext.rb

Instance Method Summary collapse

Methods included from Accessor

#[], #[]=, #delete, included, #key?

Instance Method Details

#to_hash(schema = :none) ⇒ Object



21
22
23
24
25
26
27
# File 'lib/rubyfox/sfsobject/core_ext.rb', line 21

def to_hash(schema=:none)
  if schema == :none
    Rubyfox::SFSObject::Bulk.to_hash(self)
  else
    Rubyfox::SFSObject::Schema.to_hash(schema, self)
  end
end