Sha256: 3ccdb103316404baacd07494aa47be3021a27b7783792cc231fba4f71b8d046b
Contents?: true
Size: 577 Bytes
Versions: 11
Compression:
Stored size: 577 Bytes
Contents
# frozen_string_literal: true module Bridgetown module Resource class TaxonomyTerm attr_reader :resource attr_reader :label attr_reader :type def initialize(resource:, label:, type:) @resource = resource @label = label @type = type end def to_liquid { "label" => label, } end alias_method :to_h, :to_liquid def as_json(*) to_h end ruby2_keywords def to_json(*options) as_json(*options).to_json(*options) end end end end
Version data entries
11 entries across 11 versions & 1 rubygems