Class: Graphiti::OpenAPI::ResourceData

Inherits:
Struct
  • Object
show all
Defined in:
app/models/graphiti/open_api/resource.rb

Direct Known Subclasses

Resource

Instance Method Summary collapse

Instance Method Details

#relationshipsObject



18
19
20
# File 'app/models/graphiti/open_api/resource.rb', line 18

def relationships
  Relationships.load(self)
end

#relationships?Boolean

Returns:

  • (Boolean)


22
23
24
# File 'app/models/graphiti/open_api/resource.rb', line 22

def relationships?
  relationships.any?
end