Class: Trek::ContentEditor::Link

Inherits:
Object
  • Object
show all
Extended by:
ActiveModel::Translation
Includes:
ActiveModel::Model, ActiveModel::Validations, ActiveModel::Validations::Callbacks
Defined in:
app/models/trek/content_editor/link.rb

Constant Summary collapse

TARGETS =
{
  "" => I18n.t("admin.content_editor.link.targets.self"),
  "_blank" => I18n.t("admin.content_editor.link.targets.blank")
}.invert.freeze

Instance Attribute Summary collapse

Instance Attribute Details

#hrefObject

Returns the value of attribute href.



14
15
16
# File 'app/models/trek/content_editor/link.rb', line 14

def href
  @href
end

#targetObject

Returns the value of attribute target.



14
15
16
# File 'app/models/trek/content_editor/link.rb', line 14

def target
  @target
end

#textObject

Returns the value of attribute text.



14
15
16
# File 'app/models/trek/content_editor/link.rb', line 14

def text
  @text
end

#titleObject

Returns the value of attribute title.



14
15
16
# File 'app/models/trek/content_editor/link.rb', line 14

def title
  @title
end

#turbo_frame_idObject

Returns the value of attribute turbo_frame_id.



14
15
16
# File 'app/models/trek/content_editor/link.rb', line 14

def turbo_frame_id
  @turbo_frame_id
end