without giving you the answer, try looking in Michael Niu, maybe Raymer, or Torenbeek ...
the answer does depend a little on what you mean by "hydraulic ram" ... actuator ?
you could look at existing designs (try specialist undercarriage companies like Cleveland, Goodrich, Dowty)
you could think about the environment (hydraulic fluid), type of airplane (space constraints to would tend to high strength materials), cost issues (military, large commerical, small commercial). something real is going to be experience of the airframe company and the specialist undercarriage company (they may have design guidelines driven by experience or "urban legend").
good luck