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 6
6
module Algolia
7
7
module Search
8
8
class GetObjectsResponse
9
+ # An optional status message.
10
+ attr_accessor :message
11
+
9
12
# Retrieved records.
10
13
attr_accessor :results
11
14
12
15
# Attribute mapping from ruby-style variable name to JSON key.
13
16
def self . attribute_map
14
17
{
18
+ :message => :message ,
15
19
:results => :results
16
20
}
17
21
end
@@ -24,6 +28,7 @@ def self.acceptable_attributes
24
28
# Attribute type mapping.
25
29
def self . types_mapping
26
30
{
31
+ :message => :"String" ,
27
32
:results => :"Array<Object>"
28
33
}
29
34
end
@@ -58,6 +63,10 @@ def initialize(attributes = {})
58
63
h [ k . to_sym ] = v
59
64
}
60
65
66
+ if attributes . key? ( :message )
67
+ self . message = attributes [ :message ]
68
+ end
69
+
61
70
if attributes . key? ( :results )
62
71
if ( value = attributes [ :results ] ) . is_a? ( Array )
63
72
self . results = value
@@ -72,6 +81,7 @@ def initialize(attributes = {})
72
81
def ==( other )
73
82
return true if self . equal? ( other )
74
83
self . class == other . class &&
84
+ message == other . message &&
75
85
results == other . results
76
86
end
77
87
@@ -84,7 +94,7 @@ def eql?(other)
84
94
# Calculates hash code according to all attributes.
85
95
# @return [Integer] Hash code
86
96
def hash
87
- [ results ] . hash
97
+ [ message , results ] . hash
88
98
end
89
99
90
100
# Builds the object from hash
You can’t perform that action at this time.
0 commit comments