Method: SimpleClient::Signature#object_to_hash

Defined in:
lib/simple/signature.rb

#object_to_hash(obj) ⇒ Object



43
44
45
46
47
48
49
# File 'lib/simple/signature.rb', line 43

def object_to_hash(obj)
  if obj.respond_to?(:to_hash)
    obj.to_hash
  else
    obj
  end
end