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

- old
+ new

@@ -8,108 +8,108 @@ # # @param {Long} eid # @param {Hash} options # - def find_by_eid eid, options=nil + def 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 {Long} product_eid # @param {Hash} options # - def find_by_product_eid product_eid, options=nil + def find_by_product_eid product_eid, options={} return nil unless product_eid.present? params ||= GoTransverseTractApi::ApiData.new.get_query_params({product_eid: product_eid}, options) GoTransverseTractApi.get_response_for(self, params) end # @param {Long} custom_field_value_eid # @param {Hash} options # - def find_by_custom_field_value_eid custom_field_value_eid, options=nil + def find_by_custom_field_value_eid custom_field_value_eid, options={} return nil unless custom_field_value_eid.present? params ||= GoTransverseTractApi::ApiData.new.get_query_params({custom_field_value_eid: custom_field_value_eid}, options) GoTransverseTractApi.get_response_for(self, params) end # # @param {Long} parent_eid # @param {Hash} options # - def find_by_parent_eid parent_eid, options=nil + def find_by_parent_eid parent_eid, options={} return nil unless parent_eid.present? params ||= GoTransverseTractApi::ApiData.new.get_query_params({parent_eid: parent_eid}, options) GoTransverseTractApi.get_response_for(self, params) end # # @param {Long} billing_account_eid # @param {Hash} options # - def find_by_billing_account_eid billing_account_eid, options=nil + def 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 # # @param {Long} agreement_eid # @param {Hash} options # - def find_by_agreement_eid agreement_eid, options=nil + def find_by_agreement_eid agreement_eid, options={} return nil unless agreement_eid.present? params ||= GoTransverseTractApi::ApiData.new.get_query_params({agreement_eid: agreement_eid}, options) GoTransverseTractApi.get_response_for(self, params) end # # @param {Long} account_num # @param {Hash} options # - def find_by_account_num account_num, options=nil + def find_by_account_num account_num, options={} return nil unless account_num.present? params ||= GoTransverseTractApi::ApiData.new.get_query_params({account_num: account_num}, options) GoTransverseTractApi.get_response_for(self, params) end # # @param {Long} external_account_num # @param {Hash} options # - def find_by_external_account_num external_account_num, options=nil + def find_by_external_account_num external_account_num, options={} return nil unless external_account_num.present? params ||= GoTransverseTractApi::ApiData.new.get_query_params({external_account_num: external_account_num}, options) GoTransverseTractApi.get_response_for(self, params) end # # @param {Long} service_resource_identifier # @param {Hash} options # - def find_by_service_resource_identifier service_resource_identifier, options=nil + def find_by_service_resource_identifier service_resource_identifier, options={} return nil unless service_resource_identifier.present? params ||= GoTransverseTractApi::ApiData.new.get_query_params({service_resource_identifier: service_resource_identifier}, options) GoTransverseTractApi.get_response_for(self, params) end # # @param {Long} renewal_count # @param {Hash} options # - def find_by_renewal_count renewal_count, options=nil + def find_by_renewal_count renewal_count, options={} return nil unless renewal_count.present? params ||= GoTransverseTractApi::ApiData.new.get_query_params({renewal_count: renewal_count}, options) GoTransverseTractApi.get_response_for(self, params) end