Place useful methods higher in file for ruby client to aid readability

...ity