Method: Graphiti::Util::RelationshipPayload#initialize
- Defined in:
- lib/graphiti/util/relationship_payload.rb
#initialize(resource, payload, only: [], except: []) ⇒ RelationshipPayload
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
Returns a new instance of RelationshipPayload.
15 16 17 18 19 20 |
# File 'lib/graphiti/util/relationship_payload.rb', line 15 def initialize(resource, payload, only: [], except: []) @resource = resource @payload = payload @only = only @except = except end |