Class: Enginn::Scene
Instance Attribute Summary
Attributes inherited from Resource
#attributes, #errors, #project
Class Method Summary collapse
Instance Method Summary collapse
-
#lines ⇒ Enginn::TakesIndex
Retrieve the lines of this scene.
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
.path ⇒ Object
5 6 7 |
# File 'lib/enginn/scene.rb', line 5 def self.path 'scenes' end |
Instance Method Details
#lines ⇒ Enginn::TakesIndex
Retrieve the lines of this scene.
11 12 13 |
# File 'lib/enginn/scene.rb', line 11 def lines LinesIndex.new(@project).where(scene_id_eq: @attributes[:id]) end |