File tree Expand file tree Collapse file tree
lib/intercom/api_operations Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -3,7 +3,7 @@ module ApiOperations
33 module Find
44 module ClassMethods
55 def find ( params )
6- raise BadRequestError , "#{ self } #find takes a hash as it's parameter but you supplied #{ params . inspect } " unless params . is_a? Hash
6+ raise BadRequestError , "#{ self } #find takes a hash as its parameter but you supplied #{ params . inspect } " unless params . is_a? Hash
77 collection_name = Utils . resource_class_to_collection_name ( self )
88 if params [ :id ]
99 response = Intercom . get ( "/#{ collection_name } /#{ params [ :id ] } " , { } )
Original file line number Diff line number Diff line change @@ -5,7 +5,7 @@ module ApiOperations
55 module FindAll
66 module ClassMethods
77 def find_all ( params )
8- raise BadRequestError , "#{ self } #find takes a hash as it's parameter but you supplied #{ params . inspect } " unless params . is_a? Hash
8+ raise BadRequestError , "#{ self } #find takes a hash as its parameter but you supplied #{ params . inspect } " unless params . is_a? Hash
99 collection_name = Utils . resource_class_to_collection_name ( self )
1010 finder_details = { }
1111 if params [ :id ] && !type_switched_finder? ( params )
You can’t perform that action at this time.
0 commit comments