Class: VoiceML::AssistantsV1FeedbackList

Inherits:
Object
  • Object
show all
Includes:
V1Pageable
Defined in:
lib/voiceml/models/assistants_v1.rb

Constant Summary

Constants included from V1Pageable

V1Pageable::META_FIELDS

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from V1Pageable

#assign_meta_fields

Constructor Details

#initialize(hash = {}) ⇒ AssistantsV1FeedbackList

Returns a new instance of AssistantsV1FeedbackList.



211
212
213
214
# File 'lib/voiceml/models/assistants_v1.rb', line 211

def initialize(hash = {})
  assign_meta_fields(hash)
  @feedbacks = (hash['feedbacks'] || []).map { |h| AssistantsV1Feedback.from_hash(h) }
end

Instance Attribute Details

#feedbacksObject (readonly)

Returns the value of attribute feedbacks.



210
211
212
# File 'lib/voiceml/models/assistants_v1.rb', line 210

def feedbacks
  @feedbacks
end