Download File via SCP in Ruby

To download a file vie SCP under Ruby, you can just use the NET::SCP class included in ruby like that:

For further information about NET::SCP have a look at https://github.com/net-ssh/net-scp.