Class: Jekyll::ActivityPub::Notifier::PseudoObject
- Inherits:
-
Struct
- Object
- Struct
- Jekyll::ActivityPub::Notifier::PseudoObject
- Defined in:
- lib/jekyll/activity_pub/notifier.rb
Overview
An struct that behaves like a page
Instance Attribute Summary collapse
-
#data ⇒ Object
Returns the value of attribute data.
-
#relative_path ⇒ Object
Returns the value of attribute relative_path.
-
#site ⇒ Object
Returns the value of attribute site.
-
#url ⇒ Object
Returns the value of attribute url.
Instance Method Summary collapse
Instance Attribute Details
#data ⇒ Object
Returns the value of attribute data
26 27 28 |
# File 'lib/jekyll/activity_pub/notifier.rb', line 26 def data @data end |
#relative_path ⇒ Object
Returns the value of attribute relative_path
26 27 28 |
# File 'lib/jekyll/activity_pub/notifier.rb', line 26 def relative_path @relative_path end |
#site ⇒ Object
Returns the value of attribute site
26 27 28 |
# File 'lib/jekyll/activity_pub/notifier.rb', line 26 def site @site end |
#url ⇒ Object
Returns the value of attribute url
26 27 28 |
# File 'lib/jekyll/activity_pub/notifier.rb', line 26 def url @url end |
Instance Method Details
#date ⇒ Object
31 32 33 34 35 |
# File 'lib/jekyll/activity_pub/notifier.rb', line 31 def date @date ||= Time.parse(data['published']) rescue StandardError nil end |
#destination(_) ⇒ Object
27 28 29 |
# File 'lib/jekyll/activity_pub/notifier.rb', line 27 def destination(_) site.in_dest_dir(relative_path) end |
#updated_at ⇒ Time?
38 39 40 41 42 |
# File 'lib/jekyll/activity_pub/notifier.rb', line 38 def updated_at @updated_at ||= Time.parse(data['updated']) rescue StandardError nil end |