Class: AnimateIt::RenderStore::Render

Inherits:
Data
  • Object
show all
Defined in:
lib/animate_it/render_store.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#composition_idObject (readonly)

Returns the value of attribute composition_id

Returns:

  • (Object)

    the current value of composition_id



6
7
8
# File 'lib/animate_it/render_store.rb', line 6

def composition_id
  @composition_id
end

#current_frameObject (readonly)

Returns the value of attribute current_frame

Returns:

  • (Object)

    the current value of current_frame



6
7
8
# File 'lib/animate_it/render_store.rb', line 6

def current_frame
  @current_frame
end

#errorObject (readonly)

Returns the value of attribute error

Returns:

  • (Object)

    the current value of error



6
7
8
# File 'lib/animate_it/render_store.rb', line 6

def error
  @error
end

#idObject (readonly)

Returns the value of attribute id

Returns:

  • (Object)

    the current value of id



6
7
8
# File 'lib/animate_it/render_store.rb', line 6

def id
  @id
end

#output_pathObject (readonly)

Returns the value of attribute output_path

Returns:

  • (Object)

    the current value of output_path



6
7
8
# File 'lib/animate_it/render_store.rb', line 6

def output_path
  @output_path
end

#statusObject (readonly)

Returns the value of attribute status

Returns:

  • (Object)

    the current value of status



6
7
8
# File 'lib/animate_it/render_store.rb', line 6

def status
  @status
end

#total_framesObject (readonly)

Returns the value of attribute total_frames

Returns:

  • (Object)

    the current value of total_frames



6
7
8
# File 'lib/animate_it/render_store.rb', line 6

def total_frames
  @total_frames
end

Instance Method Details

#progress_percentObject



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