Class: GetStream::Generated::Models::QueryModerationFeedbackResponse
- Inherits:
-
BaseModel
- Object
- BaseModel
- GetStream::Generated::Models::QueryModerationFeedbackResponse
- Defined in:
- lib/getstream_ruby/generated/models/query_moderation_feedback_response.rb
Instance Attribute Summary collapse
- #duration ⇒ String
- #filter_config ⇒ FilterConfigResponse
- #next ⇒ String
- #prev ⇒ String
-
#submissions ⇒ Array<ModerationFeedbackSubmissionResponse>
Feedback submissions with at least one item matching the filter, each with its matching items.
Class Method Summary collapse
-
.json_field_mappings ⇒ Object
Override field mappings for JSON serialization.
Instance Method Summary collapse
-
#initialize(attributes = {}) ⇒ QueryModerationFeedbackResponse
constructor
Initialize with attributes.
Methods inherited from BaseModel
#==, #inspect, omit_empty_fields, #to_h, #to_json
Constructor Details
#initialize(attributes = {}) ⇒ QueryModerationFeedbackResponse
Initialize with attributes
29 30 31 32 33 34 35 36 |
# File 'lib/getstream_ruby/generated/models/query_moderation_feedback_response.rb', line 29 def initialize(attributes = {}) super(attributes) @duration = attributes.fetch(:duration) { attributes.fetch('duration', nil) } @submissions = attributes.fetch(:submissions) { attributes.fetch('submissions', nil) } @next = attributes.fetch(:next) { attributes.fetch('next', nil) } @prev = attributes.fetch(:prev) { attributes.fetch('prev', nil) } @filter_config = attributes.fetch(:filter_config) { attributes.fetch('filter_config', nil) } end |
Instance Attribute Details
#duration ⇒ String
14 15 16 |
# File 'lib/getstream_ruby/generated/models/query_moderation_feedback_response.rb', line 14 def duration @duration end |
#filter_config ⇒ FilterConfigResponse
26 27 28 |
# File 'lib/getstream_ruby/generated/models/query_moderation_feedback_response.rb', line 26 def filter_config @filter_config end |
#next ⇒ String
20 21 22 |
# File 'lib/getstream_ruby/generated/models/query_moderation_feedback_response.rb', line 20 def next @next end |
#prev ⇒ String
23 24 25 |
# File 'lib/getstream_ruby/generated/models/query_moderation_feedback_response.rb', line 23 def prev @prev end |
#submissions ⇒ Array<ModerationFeedbackSubmissionResponse>
Returns Feedback submissions with at least one item matching the filter, each with its matching items.
17 18 19 |
# File 'lib/getstream_ruby/generated/models/query_moderation_feedback_response.rb', line 17 def submissions @submissions end |
Class Method Details
.json_field_mappings ⇒ Object
Override field mappings for JSON serialization
39 40 41 42 43 44 45 46 47 |
# File 'lib/getstream_ruby/generated/models/query_moderation_feedback_response.rb', line 39 def self.json_field_mappings { duration: 'duration', submissions: 'submissions', next: 'next', prev: 'prev', filter_config: 'filter_config' } end |