Module: Netflix::ResponseErrorDecorator

Defined in:
lib/netflix/response.rb

Instance Method Summary collapse

Instance Method Details

#delete(*args) ⇒ Object



7
8
9
10
# File 'lib/netflix/response.rb', line 7

def delete(*args)
  response = super(*args)
  response_or_raise_error(response)
end

#get(*args) ⇒ Object



3
4
5
6
# File 'lib/netflix/response.rb', line 3

def get(*args)
  response = super(*args)
  response_or_raise_error(response)
end

#post(*args) ⇒ Object



11
12
13
14
# File 'lib/netflix/response.rb', line 11

def post(*args)
  response = super(*args)
  response_or_raise_error(response)
end

#put(*args) ⇒ Object



15
16
17
18
# File 'lib/netflix/response.rb', line 15

def put(*args)
  response = super(*args)
  response_or_raise_error(response)
end