Class: Jekyll::ActivityPub::PropertyValue
- Inherits:
-
Object
- Object
- Jekyll::ActivityPub::PropertyValue
- Includes:
- Helper
- Defined in:
- lib/jekyll/activity_pub/property_value.rb
Overview
A Key:Value map
Instance Attribute Summary collapse
-
#data ⇒ Object
readonly
Returns the value of attribute data.
Instance Method Summary collapse
-
#initialize(name, value) ⇒ PropertyValue
constructor
A new instance of PropertyValue.
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.
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
#data ⇒ Object (readonly)
Returns the value of attribute data.
11 12 13 |
# File 'lib/jekyll/activity_pub/property_value.rb', line 11 def data @data end |