Class: Materialist::Materializer::Internals::PayloadResource
- Inherits:
-
Object
- Object
- Materialist::Materializer::Internals::PayloadResource
- Defined in:
- lib/materialist/materializer/internals/resources.rb
Direct Known Subclasses
Instance Attribute Summary collapse
-
#client ⇒ Object
readonly
Returns the value of attribute client.
Instance Method Summary collapse
-
#initialize(payload, client:) ⇒ PayloadResource
constructor
A new instance of PayloadResource.
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
#client ⇒ Object (readonly)
Returns the value of attribute client.
5 6 7 |
# File 'lib/materialist/materializer/internals/resources.rb', line 5 def client @client end |