lib/pin_up/client.rb in pin_up-0.10.1 vs lib/pin_up/client.rb in pin_up-1.0.0

- old
+ new

@@ -10,10 +10,10 @@ ## # Sends an authenticated request to pin's server # args: method (Symbol), args (Hash) # eg. args => { url: 'cards', options: { ... } } def make_request(times) - if [:get, :post, :put, :patch, :delete].include? @method + if %i(get post put patch delete).include? @method HTTParty.send(@method, "#{@base_url}#{@args[:url]}", body: @args[:options], basic_auth: @auth) else Pin::PinError.handle_bad_request end end \ No newline at end of file