Sha256: d3d4862517a3529d2f60d81b783ea1ce615ab8c9b0e4a8bf21192182873f7080
Contents?: true
Size: 541 Bytes
Versions: 5
Compression:
Stored size: 541 Bytes
Contents
# frozen_string_literal: true module Bridgetown module Resource class TaxonomyTerm attr_reader :resource, :label, :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
5 entries across 5 versions & 1 rubygems