class Snap::Response

Wraps HTTParty response so we can provide some helpful methods.

Attributes

model[R]

Public Class Methods

new(response, model) click to toggle source
Calls superclass method
# File lib/snap/response.rb, line 6
def initialize(response, model)
  @model = model
  super(response)
end

Public Instance Methods

hydrate() click to toggle source
# File lib/snap/response.rb, line 12
def hydrate
  model.new(parsed_response)
end