lib/schoology-client/resource.rb in strongmind-schoology-client-0.1.0 vs lib/schoology-client/resource.rb in strongmind-schoology-client-0.1.1
- old
+ new
@@ -7,10 +7,10 @@
def initialize(client)
@client = client
end
def post_request(url, body:, headers: {})
- handle_response client.connection.post(url, body, headers)
+ handle_response @client.connection.post(url, body, headers)
end
def handle_response(response)
case response.status
when 400