Class: MyParty

Inherits:
Object
  • Object
show all
Defined in:
lib/core_ext/myparty.rb

Class Method Summary collapse

Class Method Details

.get(*args) ⇒ Object



2
3
4
5
6
7
8
9
# File 'lib/core_ext/myparty.rb', line 2

def self.get(*args)
  response = HTTParty.get(*args)
  if response.code == 404
    raise HTTParty::Error
  else
    response
  end
end