Class: Flms::EmbedLayerViewObject

Inherits:
LayerViewObject show all
Defined in:
app/view_objects/flms/embed_layer_view_object.rb

Instance Method Summary collapse

Methods inherited from LayerViewObject

#initialize, #keyframe_data_hash, link_path_for, #view_partial_name

Constructor Details

This class inherits a constructor from Flms::LayerViewObject

Instance Method Details

#attributes(scroll_offset = 0) ⇒ Object



8
9
10
11
12
# File 'app/view_objects/flms/embed_layer_view_object.rb', line 8

def attributes(scroll_offset = 0)
  attributes = keyframe_data_hash(scroll_offset)
  attributes[:id] = @layer.name
  attributes
end

#embed_codeObject



4
5
6
# File 'app/view_objects/flms/embed_layer_view_object.rb', line 4

def embed_code
  @layer.embed_code
end