File tree Expand file tree Collapse file tree 1 file changed +11
-1
lines changed
lib/algolia/models/search Expand file tree Collapse file tree 1 file changed +11
-1
lines changed Original file line number Diff line number Diff line change 66module Algolia
77 module Search
88 class GetObjectsResponse
9+ # An optional status message.
10+ attr_accessor :message
11+
912 # Retrieved records.
1013 attr_accessor :results
1114
1215 # Attribute mapping from ruby-style variable name to JSON key.
1316 def self . attribute_map
1417 {
18+ :message => :message ,
1519 :results => :results
1620 }
1721 end
@@ -24,6 +28,7 @@ def self.acceptable_attributes
2428 # Attribute type mapping.
2529 def self . types_mapping
2630 {
31+ :message => :"String" ,
2732 :results => :"Array<Object>"
2833 }
2934 end
@@ -58,6 +63,10 @@ def initialize(attributes = {})
5863 h [ k . to_sym ] = v
5964 }
6065
66+ if attributes . key? ( :message )
67+ self . message = attributes [ :message ]
68+ end
69+
6170 if attributes . key? ( :results )
6271 if ( value = attributes [ :results ] ) . is_a? ( Array )
6372 self . results = value
@@ -72,6 +81,7 @@ def initialize(attributes = {})
7281 def ==( other )
7382 return true if self . equal? ( other )
7483 self . class == other . class &&
84+ message == other . message &&
7585 results == other . results
7686 end
7787
@@ -84,7 +94,7 @@ def eql?(other)
8494 # Calculates hash code according to all attributes.
8595 # @return [Integer] Hash code
8696 def hash
87- [ results ] . hash
97+ [ message , results ] . hash
8898 end
8999
90100 # Builds the object from hash
You can’t perform that action at this time.
0 commit comments