Class: MetatagCop::Models::Csv
- Inherits:
-
Object
- Object
- MetatagCop::Models::Csv
- Defined in:
- lib/metatag_cop/models/csv.rb
Instance Attribute Summary collapse
-
#description ⇒ Object
readonly
Returns the value of attribute description.
-
#h1 ⇒ Object
readonly
Returns the value of attribute h1.
-
#keywords ⇒ Object
readonly
Returns the value of attribute keywords.
-
#title ⇒ Object
readonly
Returns the value of attribute title.
-
#url ⇒ Object
readonly
Returns the value of attribute url.
Instance Method Summary collapse
-
#initialize(url: nil, title: nil, description: nil, keywords: nil, h1: nil) ⇒ Csv
constructor
A new instance of Csv.
Constructor Details
#initialize(url: nil, title: nil, description: nil, keywords: nil, h1: nil) ⇒ Csv
Returns a new instance of Csv.
9 10 11 12 13 14 15 16 |
# File 'lib/metatag_cop/models/csv.rb', line 9 def initialize(url: nil, title: nil, description: nil, keywords: nil, h1: nil) @url = url @title = title @description = description @keywords = keywords @h1 = h1 end |
Instance Attribute Details
#description ⇒ Object (readonly)
Returns the value of attribute description.
7 8 9 |
# File 'lib/metatag_cop/models/csv.rb', line 7 def description @description end |
#h1 ⇒ Object (readonly)
Returns the value of attribute h1.
7 8 9 |
# File 'lib/metatag_cop/models/csv.rb', line 7 def h1 @h1 end |
#keywords ⇒ Object (readonly)
Returns the value of attribute keywords.
7 8 9 |
# File 'lib/metatag_cop/models/csv.rb', line 7 def keywords @keywords end |
#title ⇒ Object (readonly)
Returns the value of attribute title.
7 8 9 |
# File 'lib/metatag_cop/models/csv.rb', line 7 def title @title end |
#url ⇒ Object (readonly)
Returns the value of attribute url.
7 8 9 |
# File 'lib/metatag_cop/models/csv.rb', line 7 def url @url end |