Class: Dato::Local::FieldType::Seo
- Inherits:
-
Object
- Object
- Dato::Local::FieldType::Seo
- Defined in:
- lib/dato/local/field_type/seo.rb
Instance Attribute Summary collapse
-
#description ⇒ Object
readonly
Returns the value of attribute description.
-
#title ⇒ Object
readonly
Returns the value of attribute title.
Class Method Summary collapse
Instance Method Summary collapse
- #image ⇒ Object
-
#initialize(title, description, image) ⇒ Seo
constructor
A new instance of Seo.
Constructor Details
#initialize(title, description, image) ⇒ Seo
Returns a new instance of Seo.
12 13 14 15 16 |
# File 'lib/dato/local/field_type/seo.rb', line 12 def initialize(title, description, image) @title = title @description = description @image = image end |
Instance Attribute Details
#description ⇒ Object (readonly)
Returns the value of attribute description.
6 7 8 |
# File 'lib/dato/local/field_type/seo.rb', line 6 def description @description end |
#title ⇒ Object (readonly)
Returns the value of attribute title.
6 7 8 |
# File 'lib/dato/local/field_type/seo.rb', line 6 def title @title end |
Class Method Details
.parse(value, _repo) ⇒ Object
8 9 10 |
# File 'lib/dato/local/field_type/seo.rb', line 8 def self.parse(value, _repo) new(value[:title], value[:description], value[:image]) end |