class Nucleo::Models::Element

Public Class Methods

new(attributes={}) click to toggle source
# File lib/nucleo/models/element.rb, line 6
def initialize(attributes={})
  @attributes = attributes
end

Public Instance Methods

alt() click to toggle source
# File lib/nucleo/models/element.rb, line 18
def alt
  @attributes.fetch('alt', '')
end
content() click to toggle source
# File lib/nucleo/models/element.rb, line 10
def content
  @attributes.fetch('content', '')
end
content_empty?() click to toggle source
# File lib/nucleo/models/element.rb, line 26
def content_empty?
  self.content.empty?
end
content_length() click to toggle source
# File lib/nucleo/models/element.rb, line 22
def content_length
  self.content.length
end
content_present?() click to toggle source
# File lib/nucleo/models/element.rb, line 30
def content_present?
  self.content.present?
end
html() click to toggle source
# File lib/nucleo/models/element.rb, line 34
def html
  @attributes.fetch('html', '')
end
src() click to toggle source
# File lib/nucleo/models/element.rb, line 14
def src
  @attributes.fetch('src', '')
end