Class: Nucleo::Models::ChangeTypes::Seo::Base
- Defined in:
- lib/nucleo/models/change_types/seo/base.rb
Direct Known Subclasses
Constant Summary collapse
- VALID_ACTIONS =
%w( insert update remove ).freeze
- VALID_SELECTORS =
%w( class content id name src ).freeze
Instance Method Summary collapse
-
#action ⇒ String
Returns the action.
-
#content ⇒ String
Returns the string value of the content to be replaced.
-
#selector ⇒ String
Returns the selector.
-
#selector_content ⇒ String
Returns a string value that uniquely identifies and item by the ‘selector` provided.
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
#action ⇒ String
Returns the action
14 15 16 |
# File 'lib/nucleo/models/change_types/seo/base.rb', line 14 def action rule['action'] end |
#content ⇒ String
Returns the string value of the content to be replaced
21 22 23 |
# File 'lib/nucleo/models/change_types/seo/base.rb', line 21 def content rule['content'] end |
#selector ⇒ String
Returns the selector
28 29 30 |
# File 'lib/nucleo/models/change_types/seo/base.rb', line 28 def selector rule['selector'] end |
#selector_content ⇒ String
Returns a string value that uniquely identifies and item by the ‘selector` provided.
36 37 38 |
# File 'lib/nucleo/models/change_types/seo/base.rb', line 36 def selector_content rule['selector_content'] end |