lib/crowdskout/services/quartermaster_service.rb in crowdskout-0.1.2 vs lib/crowdskout/services/quartermaster_service.rb in crowdskout-0.1.3

- old
+ new

@@ -5,19 +5,16 @@ # Copyright (c) 2016 Kyle Schutt. All rights reserved. module Crowdskout module Services class QuartermasterService < BaseService - class << self + # More info - to get the tracking codes for CrowdSkout + # @return [Components::TrackingCode] Components::TrackingCode + def tracking_code + url = Util::Config.get('endpoints.base_url') + Util::Config.get('endpoints.tracking') - # More info - to get the tracking codes for CrowdSkout - # @return [Components::TrackingCode] Components::TrackingCode - def tracking_code - url = Util::Config.get('endpoints.base_url') + Util::Config.get('endpoints.tracking') - - response = RestClient.get(url, get_headers()) - Components::TrackingCode.create(JSON.parse(response.body)["data"]) - end + response = RestClient.get(url, get_headers()) + Components::TrackingCode.create(JSON.parse(response.body)["data"]) end end end -end \ No newline at end of file +end