Class: Faq::RefreshEmbeddingPosts::Result

Inherits:
Data
  • Object
show all
Defined in:
app/services/faq/refresh_embedding_posts.rb

Overview

Immutable refresh result returned to callers.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(refreshed_posts: []) ⇒ Result

Build a refresh result.

Parameters:

  • refreshed_posts (Array<Hash>) (defaults to: [])

    per-post refresh outcomes



22
# File 'app/services/faq/refresh_embedding_posts.rb', line 22

def initialize(refreshed_posts: []) = super

Instance Attribute Details

#refreshed_postsObject (readonly)

Returns the value of attribute refreshed_posts

Returns:

  • (Object)

    the current value of refreshed_posts



18
19
20
# File 'app/services/faq/refresh_embedding_posts.rb', line 18

def refreshed_posts
  @refreshed_posts
end