const_missing_from_s3_library is the error you will receive if you are not referencing the entire S3Object object in your ruby script.

The confusion may stem from using S3’s interactive s3sh console which does not require that you reference the entire S3Object.

If are experiencing this problem, try referring to S3Object as AWS::S3::S3Object in your ruby script.