lib/gotransverse-tract-api/order/organization.rb in gotransverse-tract-api-0.7.5 vs lib/gotransverse-tract-api/order/organization.rb in gotransverse-tract-api-0.8.0

- old
+ new

@@ -5,41 +5,41 @@ class Organization # # @param {Hash} options # - def self.find_all options=nil + def self.find_all options={} params ||= GoTransverseTractApi::ApiData.new.get_query_params({}, options) GoTransverseTractApi.get_response_for(self, params) end # # @param {Long} eid # @param {Hash} options # - def self.find_by_eid eid, options=nil + def self.find_by_eid eid, options={} return nil unless eid.present? params ||= GoTransverseTractApi::ApiData.new.get_query_params({eid: eid}, options) GoTransverseTractApi.get_response_for(self, params) end # # @param {String} name # @param {Hash} options # - def self.find_by_name name, options=nil + def self.find_by_name name, options={} return nil unless name.present? params ||= GoTransverseTractApi::ApiData.new.get_query_params({name: name}, options) GoTransverseTractApi.get_response_for(self, params) end # # @param {Long} billing_account_eid # @param {Hash} options # - def self.find_by_billing_account_eid billing_account_eid, options=nil + def self.find_by_billing_account_eid billing_account_eid, options={} return nil unless billing_account_eid.present? params ||= GoTransverseTractApi::ApiData.new.get_query_params({billing_account_eid: billing_account_eid}, options) GoTransverseTractApi.get_response_for(self, params) end