How to use hessian with custome java type?

hi all:
i have implement a service at ‘http://localhost:8080/hessian/basic
by
hessian, a method will return custom java type, it include some
attributes,
access attributes by getter and setter method.
and how to use ruby get the attribute in custom java type. thanks