module RuBittrex::ClientHelper

Private Instance Methods

_get(path, params) click to toggle source
# File lib/ru_bittrex/client_helper.rb, line 9
def _get(path, params)
  custom_client = params.delete(:client)
  client(custom_client).get(path, params)
end
client(custom_client = nil) click to toggle source
# File lib/ru_bittrex/client_helper.rb, line 5
def client(custom_client = nil)
  custom_client || RuBittrex.client
end
collection(data) click to toggle source
# File lib/ru_bittrex/client_helper.rb, line 14
def collection(data)
  data.map { |record| new(record) }
end