Method: Playapi::Base.from_response

Defined in:
lib/playapi/base.rb

.from_response(response = {}) ⇒ Playapi::Base

Returns a new object based on the response hash



55
56
57
# File 'lib/playapi/base.rb', line 55

def self.from_response(response={})
  fetch_or_new(response[:body])
end