class Galactus::Response

Attributes

raw_response[R]

Public Class Methods

create(response) click to toggle source
# File lib/galactus/response.rb, line 12
def self.create(response)
  case response.code
    when 200
      Response.new(response)
    when 304
      NotModifiedResponse.new(response)
    else
      ErrorResponse.new(response)
  end
end
new(response) click to toggle source
Calls superclass method
# File lib/galactus/response.rb, line 23
def initialize(response)
  @raw_response = response
  super(response)
end