Class: Jekyll::ActivityPub::PropertyValue

Inherits:
Object
  • Object
show all
Includes:
Helper
Defined in:
lib/jekyll/activity_pub/property_value.rb

Overview

A Key:Value map

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from Helper

#content, #generate_excerpt?, #hook_owner, #locale, #place_in_layout?, #pruned_data, #render_with_liquid?, #to_json, #to_liquid, #trigger_hooks

Constructor Details

#initialize(name, value) ⇒ PropertyValue

Returns a new instance of PropertyValue.

Parameters:

  • :name (String)
  • :value (String)


15
16
17
18
19
20
21
22
23
# File 'lib/jekyll/activity_pub/property_value.rb', line 15

def initialize(name, value)
  @data = {
    'type' => 'PropertyValue',
    'name' => name.to_s,
    'value' => value.to_s
  }

  trigger_hooks :post_init
end

Instance Attribute Details

#dataObject (readonly)

Returns the value of attribute data.



11
12
13
# File 'lib/jekyll/activity_pub/property_value.rb', line 11

def data
  @data
end