Class: Materialist::Materializer::Internals::PayloadResource

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

Direct Known Subclasses

HateoasResource

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(payload, client:) ⇒ PayloadResource

Returns a new instance of PayloadResource.



9
10
11
12
# File 'lib/materialist/materializer/internals/resources.rb', line 9

def initialize(payload, client:)
  @payload = payload
  @client = client
end

Instance Attribute Details

#clientObject (readonly)

Returns the value of attribute client.



5
6
7
# File 'lib/materialist/materializer/internals/resources.rb', line 5

def client
  @client
end