class AWS::S3::ObjectVersionCollection

def latest

Returns:
  • (ObjectVersion) - Returns the latest version of this object.

Other tags:
    Note: - Generally you will just want to grab the object key its key.
def latest
  self.find{|version| true }
end