Class: Materialist::Materializer::Internals::HateoasResource

Inherits:
PayloadResource
  • Object
show all
Defined in:
lib/materialist/materializer/internals/resources.rb

Instance Attribute Summary

Attributes inherited from PayloadResource

#client

Instance Method Summary collapse

Constructor Details

#initialize(response, client:) ⇒ HateoasResource

Returns a new instance of HateoasResource.



16
17
18
# File 'lib/materialist/materializer/internals/resources.rb', line 16

def initialize(response, client:)
  super(response.body, client: client)
end