Class: AnimateIt::RenderStore::Render
- Inherits:
-
Data
- Object
- Data
- AnimateIt::RenderStore::Render
- Defined in:
- lib/animate_it/render_store.rb
Instance Attribute Summary collapse
-
#composition_id ⇒ Object
readonly
Returns the value of attribute composition_id.
-
#current_frame ⇒ Object
readonly
Returns the value of attribute current_frame.
-
#error ⇒ Object
readonly
Returns the value of attribute error.
-
#id ⇒ Object
readonly
Returns the value of attribute id.
-
#output_path ⇒ Object
readonly
Returns the value of attribute output_path.
-
#status ⇒ Object
readonly
Returns the value of attribute status.
-
#total_frames ⇒ Object
readonly
Returns the value of attribute total_frames.
Instance Method Summary collapse
Instance Attribute Details
#composition_id ⇒ Object (readonly)
Returns the value of attribute composition_id
6 7 8 |
# File 'lib/animate_it/render_store.rb', line 6 def composition_id @composition_id end |
#current_frame ⇒ Object (readonly)
Returns the value of attribute current_frame
6 7 8 |
# File 'lib/animate_it/render_store.rb', line 6 def current_frame @current_frame end |
#error ⇒ Object (readonly)
Returns the value of attribute error
6 7 8 |
# File 'lib/animate_it/render_store.rb', line 6 def error @error end |
#id ⇒ Object (readonly)
Returns the value of attribute id
6 7 8 |
# File 'lib/animate_it/render_store.rb', line 6 def id @id end |
#output_path ⇒ Object (readonly)
Returns the value of attribute output_path
6 7 8 |
# File 'lib/animate_it/render_store.rb', line 6 def output_path @output_path end |
#status ⇒ Object (readonly)
Returns the value of attribute status
6 7 8 |
# File 'lib/animate_it/render_store.rb', line 6 def status @status end |
#total_frames ⇒ Object (readonly)
Returns the value of attribute total_frames
6 7 8 |
# File 'lib/animate_it/render_store.rb', line 6 def total_frames @total_frames end |
Instance Method Details
#progress_percent ⇒ Object
15 16 17 18 19 |
# File 'lib/animate_it/render_store.rb', line 15 def progress_percent return 0 if total_frames.to_i.zero? ((current_frame.to_f / total_frames) * 100).round end |