Class: Enginn::Scene

Inherits:
Resource show all
Defined in:
lib/enginn/scene.rb

Instance Attribute Summary

Attributes inherited from Resource

#attributes, #errors, #project

Class Method Summary collapse

Instance Method Summary collapse

Methods inherited from Resource

#destroy, #destroy!, #fetch, #fetch!, #initialize, #inspect, #route, #save, #save!

Constructor Details

This class inherits a constructor from Enginn::Resource

Class Method Details

.pathObject



5
6
7
# File 'lib/enginn/scene.rb', line 5

def self.path
  'scenes'
end

Instance Method Details

#linesEnginn::TakesIndex

Retrieve the lines of this scene.

Returns:



11
12
13
# File 'lib/enginn/scene.rb', line 11

def lines
  LinesIndex.new(@project).where(scene_id_eq: @attributes[:id])
end