Skip to content

Commit

Permalink
feat(specs): add missing message attribute to GetObjectsResponse [ski…
Browse files Browse the repository at this point in the history
…p-bc] (generated)

algolia/api-clients-automation#4029

Co-authored-by: algolia-bot <[email protected]>
Co-authored-by: Vincent Lemeunier <[email protected]>
  • Loading branch information
algolia-bot and kombucha committed Oct 24, 2024
1 parent 18fbb9e commit 095aa04
Showing 1 changed file with 11 additions and 1 deletion.
12 changes: 11 additions & 1 deletion lib/algolia/models/search/get_objects_response.rb
Original file line number Diff line number Diff line change
Expand Up @@ -6,12 +6,16 @@
module Algolia
module Search
class GetObjectsResponse
# An optional status message.
attr_accessor :message

# Retrieved records.
attr_accessor :results

# Attribute mapping from ruby-style variable name to JSON key.
def self.attribute_map
{
:message => :message,
:results => :results
}
end
Expand All @@ -24,6 +28,7 @@ def self.acceptable_attributes
# Attribute type mapping.
def self.types_mapping
{
:message => :"String",
:results => :"Array<Object>"
}
end
Expand Down Expand Up @@ -58,6 +63,10 @@ def initialize(attributes = {})
h[k.to_sym] = v
}

if attributes.key?(:message)
self.message = attributes[:message]
end

if attributes.key?(:results)
if (value = attributes[:results]).is_a?(Array)
self.results = value
Expand All @@ -72,6 +81,7 @@ def initialize(attributes = {})
def ==(other)
return true if self.equal?(other)
self.class == other.class &&
message == other.message &&
results == other.results
end

Expand All @@ -84,7 +94,7 @@ def eql?(other)
# Calculates hash code according to all attributes.
# @return [Integer] Hash code
def hash
[results].hash
[message, results].hash
end

# Builds the object from hash
Expand Down

0 comments on commit 095aa04

Please sign in to comment.