Class: Fame::LocalizedNode

Inherits:
Struct
  • Object
show all
Defined in:
lib/fame/models.rb

Overview

nokogiri_node = original nokogiri node original_id = F4z-Kg-ni6 vc_name = CustomViewController (optional) element_name = label i18n_enabled = true i18n_comment = “Best label ever invented”

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#element_nameObject

Returns the value of attribute element_name

Returns:

  • (Object)

    the current value of element_name



9
10
11
# File 'lib/fame/models.rb', line 9

def element_name
  @element_name
end

#i18n_commentObject

Returns the value of attribute i18n_comment

Returns:

  • (Object)

    the current value of i18n_comment



9
10
11
# File 'lib/fame/models.rb', line 9

def i18n_comment
  @i18n_comment
end

#i18n_enabledObject

Returns the value of attribute i18n_enabled

Returns:

  • (Object)

    the current value of i18n_enabled



9
10
11
# File 'lib/fame/models.rb', line 9

def i18n_enabled
  @i18n_enabled
end

#nokogiri_nodeObject

Returns the value of attribute nokogiri_node

Returns:

  • (Object)

    the current value of nokogiri_node



9
10
11
# File 'lib/fame/models.rb', line 9

def nokogiri_node
  @nokogiri_node
end

#original_idObject

Returns the value of attribute original_id

Returns:

  • (Object)

    the current value of original_id



9
10
11
# File 'lib/fame/models.rb', line 9

def original_id
  @original_id
end

#vc_nameObject

Returns the value of attribute vc_name

Returns:

  • (Object)

    the current value of vc_name



9
10
11
# File 'lib/fame/models.rb', line 9

def vc_name
  @vc_name
end

Instance Method Details

#formatted_infoObject



10
11
12
13
# File 'lib/fame/models.rb', line 10

def formatted_info
  info = [vc_name, element_name].compact.join(" ")
  "[#{info}] #{i18n_comment}"
end