Sha256: 78d0544dcb67cc0315a7bf1ee1c9fbca1280c386c76f5b64200f58a34fbf1a31

Contents?: true

Size: 504 Bytes

Versions: 14

Compression:

Stored size: 504 Bytes

Contents

# frozen_string_literal: true
module Dato
  module Local
    module FieldType
      class Seo
        attr_reader :title, :description

        def self.parse(value, _repo)
          new(value[:title], value[:description], value[:image])
        end

        def initialize(title, description, image)
          @title = title
          @description = description
          @image = image
        end

        def image
          @image && Image.parse(@image, nil)
        end
      end
    end
  end
end

Version data entries

14 entries across 14 versions & 1 rubygems

Version Path
dato-0.1.20 lib/dato/local/field_type/seo.rb
dato-0.1.19 lib/dato/local/field_type/seo.rb
dato-0.1.18 lib/dato/local/field_type/seo.rb
dato-0.1.17 lib/dato/local/field_type/seo.rb
dato-0.1.16 lib/dato/local/field_type/seo.rb
dato-0.1.15 lib/dato/local/field_type/seo.rb
dato-0.1.14 lib/dato/local/field_type/seo.rb
dato-0.1.13 lib/dato/local/field_type/seo.rb
dato-0.1.12 lib/dato/local/field_type/seo.rb
dato-0.1.11 lib/dato/local/field_type/seo.rb
dato-0.1.10 lib/dato/local/field_type/seo.rb
dato-0.1.9 lib/dato/local/field_type/seo.rb
dato-0.1.8 lib/dato/local/field_type/seo.rb
dato-0.1.6 lib/dato/local/field_type/seo.rb