Module: ZerigoDNS::Resource::Attributes::ClassMethods

Defined in:
lib/zerigodns/resource/attributes.rb

Instance Method Summary collapse

Instance Method Details

#from_response(response, body) ⇒ Object

Constructs a new resource from a response

Parameters:

  • response (Faraday::Response)

    The response

  • body (Hash)

    The response body without root



50
51
52
# File 'lib/zerigodns/resource/attributes.rb', line 50

def from_response response, body
  new body
end