class Bridgetown::Resource::TaxonomyTerm
Attributes
label[R]
resource[R]
type[R]
Public Class Methods
new(resource:, label:, type:)
click to toggle source
# File lib/bridgetown-core/resource/taxonomy_term.rb, line 12 def initialize(resource:, label:, type:) @resource = resource @label = label @type = type end
Public Instance Methods
as_json(*)
click to toggle source
# File lib/bridgetown-core/resource/taxonomy_term.rb, line 25 def as_json(*) to_h end
to_json(*options)
click to toggle source
# File lib/bridgetown-core/resource/taxonomy_term.rb, line 29 def to_json(*options) as_json(*options).to_json(*options) end
to_liquid()
click to toggle source
# File lib/bridgetown-core/resource/taxonomy_term.rb, line 18 def to_liquid { "label" => label, } end
Also aliased as: to_h