Class: Nucleo::Models::ChangeTypes::Seo::Base

Inherits:
Base
  • Object
show all
Defined in:
lib/nucleo/models/change_types/seo/base.rb

Direct Known Subclasses

MetaDescription, PageTitle

Constant Summary collapse

VALID_ACTIONS =
%w( insert update remove ).freeze
VALID_SELECTORS =
%w( class content id name src ).freeze

Instance Method Summary collapse

Methods inherited from Base

#<=>, #category, #context, #created_at, #id, #initialize, #page_id, #site_id, #type

Constructor Details

This class inherits a constructor from Nucleo::Models::ChangeTypes::Base

Instance Method Details

#actionString

Returns the action

Returns:

  • (String)


14
15
16
# File 'lib/nucleo/models/change_types/seo/base.rb', line 14

def action
  rule['action']
end

#contentString

Returns the string value of the content to be replaced

Returns:

  • (String)


21
22
23
# File 'lib/nucleo/models/change_types/seo/base.rb', line 21

def content
  rule['content']
end

#selectorString

Returns the selector

Returns:

  • (String)


28
29
30
# File 'lib/nucleo/models/change_types/seo/base.rb', line 28

def selector
  rule['selector']
end

#selector_contentString

Returns a string value that uniquely identifies and item by the ‘selector` provided.

Returns:

  • (String)


36
37
38
# File 'lib/nucleo/models/change_types/seo/base.rb', line 36

def selector_content
  rule['selector_content']
end