Class: GraphicGroupLabel

Inherits:
ActiveRecord::Base
  • Object
show all
Includes:
CoreBase
Defined in:
app/models/graphic_group_label.rb

Overview

Graphic Group Label

Attributes:

Associations:

Instance Method Summary (collapse)

Instance Method Details

- (Object) to_legacy_json(_options = {})



25
26
27
# File 'app/models/graphic_group_label.rb', line 25

def to_legacy_json(_options = {})
  return "{id:#{id}, name:'#{name}'}"
end

- (Object) to_legacy_xml(_options = {})



21
22
23
# File 'app/models/graphic_group_label.rb', line 21

def to_legacy_xml(_options = {})
  return "<GroupLabel id='#{id}' name='#{name}'/>"
end

- (Object) to_svg



17
18
19
# File 'app/models/graphic_group_label.rb', line 17

def to_svg
  "<group_label id=\"#{id}\" name=\"#{name}\"/>"
end