Sha256: 1476d66b07c231b4f3692c7c08929840ae6d28b8871e65cd1c4838ee4687d3ab
Contents?: true
Size: 644 Bytes
Versions: 2
Compression:
Stored size: 644 Bytes
Contents
module JSONAPIonify::Structure module Objects class Relationship < Base # A "relationship object" MUST contain at least one of the following: must_contain_one_of! :links, # A links object. :data, # Resource linkage. :meta # A meta object that contains non-standard meta-information about the relationship. implements :links, as: Maps::Links implements :meta, as: Meta collects_or_implements( :data, collects: Collections::ResourceIdentifiers, implements: ResourceIdentifier, allow_nil: true ) end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
jsonapionify-0.9.0 | lib/jsonapionify/structure/objects/relationship.rb |
jsonapionify-0.0.1.pre | lib/jsonapionify/structure/objects/relationship.rb |