Searching 22 files for "send_request" /Users/row/code/github/globase/lib/globase/list_schema.rb: 5 6 def get(parent, params = {}) 7: send_request(parent, :get, params) 8 9 debug_response(response) /Users/row/code/github/globase/lib/globase/nested_resource.rb: 25 end 26 27: def send_request(parent, method = :get, params = {}, id = nil, data = nil) 28 #begin 29 if id.nil? /Users/row/code/github/globase/lib/globase/resource.rb: 15 16 def delete(params = {}) 17: self.class.send_request(:delete, params, id) 18 end 19 .. 22 update(params) 23 else 24: self.class.send_request(:post, params, nil, data) 25 persisted = true 26 end .. 29 def update(params = {}) 30 if persisted 31: self.class.send_request(:put, params, id, data) 32 persisted = true 33 else .. 39 40 def find(id, params = {}) 41: r = new( send_request(:get, params, id) ) 42 r.persisted = true 43 r .. 45 46 def all(params = {}) 47: send_request(:get, params).collect do |d| 48 r = new(d) 49 r.persisted = true .. 56 end 57 58: def send_request(method = :get, params = {}, id = nil, data = nil) 59 #begin 60 if id.nil? 8 matches across 3 files Searching 22 files for "base_url" /Users/row/code/github/globase/lib/globase/base.rb: 13 14 def url 15: "#{self.class.base_url}/#{id}" 16 end 17 .. 70 end 71 72: def base_url(parent = nil) 73 "#{host_url}/#{collection_name}" 74 end /Users/row/code/github/globase/lib/globase/nested_resource.rb: 13 14 def resource(parent, params = {}) 15: @resource ||= RestClient::Resource.new( base_url( parent ), headers: headers(params), timeout: timeout ) 16 end 17 18: def base_url(parent) 19 puts "Globase::NestedResource" 20 "#{parent.url}/#{collection_name}" /Users/row/code/github/globase/lib/globase/resource.rb: 53 54 def resource(params = {}) 55: @resource ||= RestClient::Resource.new( base_url, headers: headers(params), timeout: timeout ) 56 end 57 5 matches across 3 files