kleister 1.0.0 → 1.2.0

Sign up to get free protection for your applications and to get access to all the features.
@@ -88,7 +88,7 @@ module Kleister
88
88
  self.perm = if attributes.key?(:perm)
89
89
  attributes[:perm]
90
90
  else
91
- 'team'
91
+ 'user'
92
92
  end
93
93
  end
94
94
 
@@ -110,7 +110,7 @@ module Kleister
110
110
  warn '[DEPRECATED] the `valid?` method is obsolete'
111
111
  return false if @team.nil?
112
112
 
113
- perm_validator = EnumAttributeValidator.new('String', %w[team admin owner])
113
+ perm_validator = EnumAttributeValidator.new('String', %w[user admin owner])
114
114
  return false unless perm_validator.valid?(@perm)
115
115
 
116
116
  true
@@ -119,7 +119,7 @@ module Kleister
119
119
  # Custom attribute writer method checking allowed values (enum).
120
120
  # @param [Object] perm Object to be assigned
121
121
  def perm=(perm)
122
- validator = EnumAttributeValidator.new('String', %w[team admin owner])
122
+ validator = EnumAttributeValidator.new('String', %w[user admin owner])
123
123
  unless validator.valid?(perm)
124
124
  raise ArgumentError, "invalid value for \"perm\", must be one of #{validator.allowable_values}."
125
125
  end
@@ -14,14 +14,13 @@ require 'time'
14
14
  module Kleister
15
15
  # Model to represent neoforge
16
16
  class Neoforge
17
- attr_accessor :id, :name, :minecraft, :created_at, :updated_at
17
+ attr_accessor :id, :name, :created_at, :updated_at
18
18
 
19
19
  # Attribute mapping from ruby-style variable name to JSON key.
20
20
  def self.attribute_map
21
21
  {
22
22
  id: :id,
23
23
  name: :name,
24
- minecraft: :minecraft,
25
24
  created_at: :created_at,
26
25
  updated_at: :updated_at
27
26
  }
@@ -37,7 +36,6 @@ module Kleister
37
36
  {
38
37
  id: :String,
39
38
  name: :String,
40
- minecraft: :String,
41
39
  created_at: :Time,
42
40
  updated_at: :Time
43
41
  }
@@ -45,9 +43,8 @@ module Kleister
45
43
 
46
44
  # List of attributes with nullable: true
47
45
  def self.openapi_nullable
48
- Set.new(%i[
49
- name
50
- minecraft
46
+ Set.new([
47
+ :name
51
48
  ])
52
49
  end
53
50
 
@@ -75,10 +72,6 @@ module Kleister
75
72
  self.name = attributes[:name]
76
73
  end
77
74
 
78
- if attributes.key?(:minecraft)
79
- self.minecraft = attributes[:minecraft]
80
- end
81
-
82
75
  if attributes.key?(:created_at)
83
76
  self.created_at = attributes[:created_at]
84
77
  end
@@ -110,7 +103,6 @@ module Kleister
110
103
  self.class == other.class &&
111
104
  id == other.id &&
112
105
  name == other.name &&
113
- minecraft == other.minecraft &&
114
106
  created_at == other.created_at &&
115
107
  updated_at == other.updated_at
116
108
  end
@@ -124,7 +116,7 @@ module Kleister
124
116
  # Calculates hash code according to all attributes.
125
117
  # @return [Integer] Hash code
126
118
  def hash
127
- [id, name, minecraft, created_at, updated_at].hash
119
+ [id, name, created_at, updated_at].hash
128
120
  end
129
121
 
130
122
  # Builds the object from hash
@@ -14,7 +14,7 @@ require 'time'
14
14
  module Kleister
15
15
  # Model to represent pack
16
16
  class Pack
17
- attr_accessor :id, :icon, :logo, :back, :recommended_id, :recommended, :latest_id, :latest, :slug, :name, :website, :public, :created_at, :updated_at, :builds, :users, :teams
17
+ attr_accessor :id, :icon, :logo, :back, :slug, :name, :website, :public, :created_at, :updated_at
18
18
 
19
19
  # Attribute mapping from ruby-style variable name to JSON key.
20
20
  def self.attribute_map
@@ -23,19 +23,12 @@ module Kleister
23
23
  icon: :icon,
24
24
  logo: :logo,
25
25
  back: :back,
26
- recommended_id: :recommended_id,
27
- recommended: :recommended,
28
- latest_id: :latest_id,
29
- latest: :latest,
30
26
  slug: :slug,
31
27
  name: :name,
32
28
  website: :website,
33
29
  public: :public,
34
30
  created_at: :created_at,
35
- updated_at: :updated_at,
36
- builds: :builds,
37
- users: :users,
38
- teams: :teams
31
+ updated_at: :updated_at
39
32
  }
40
33
  end
41
34
 
@@ -51,34 +44,22 @@ module Kleister
51
44
  icon: :PackIcon,
52
45
  logo: :PackLogo,
53
46
  back: :PackBack,
54
- recommended_id: :String,
55
- recommended: :Build,
56
- latest_id: :String,
57
- latest: :Build,
58
47
  slug: :String,
59
48
  name: :String,
60
49
  website: :String,
61
50
  public: :Boolean,
62
51
  created_at: :Time,
63
- updated_at: :Time,
64
- builds: :'Array<Build>',
65
- users: :'Array<UserPack>',
66
- teams: :'Array<TeamPack>'
52
+ updated_at: :Time
67
53
  }
68
54
  end
69
55
 
70
56
  # List of attributes with nullable: true
71
57
  def self.openapi_nullable
72
58
  Set.new(%i[
73
- recommended_id
74
- latest_id
75
59
  slug
76
60
  name
77
61
  website
78
62
  public
79
- builds
80
- users
81
- teams
82
63
  ])
83
64
  end
84
65
 
@@ -114,22 +95,6 @@ module Kleister
114
95
  self.back = attributes[:back]
115
96
  end
116
97
 
117
- if attributes.key?(:recommended_id)
118
- self.recommended_id = attributes[:recommended_id]
119
- end
120
-
121
- if attributes.key?(:recommended)
122
- self.recommended = attributes[:recommended]
123
- end
124
-
125
- if attributes.key?(:latest_id)
126
- self.latest_id = attributes[:latest_id]
127
- end
128
-
129
- if attributes.key?(:latest)
130
- self.latest = attributes[:latest]
131
- end
132
-
133
98
  if attributes.key?(:slug)
134
99
  self.slug = attributes[:slug]
135
100
  end
@@ -153,18 +118,6 @@ module Kleister
153
118
  if attributes.key?(:updated_at)
154
119
  self.updated_at = attributes[:updated_at]
155
120
  end
156
-
157
- if attributes.key?(:builds) && (value = attributes[:builds]).is_a?(Array)
158
- self.builds = value
159
- end
160
-
161
- if attributes.key?(:users) && (value = attributes[:users]).is_a?(Array)
162
- self.users = value
163
- end
164
-
165
- if attributes.key?(:teams) && (value = attributes[:teams]).is_a?(Array)
166
- self.teams = value
167
- end
168
121
  end
169
122
 
170
123
  # Show invalid properties with the reasons. Usually used together with valid?
@@ -191,19 +144,12 @@ module Kleister
191
144
  icon == other.icon &&
192
145
  logo == other.logo &&
193
146
  back == other.back &&
194
- recommended_id == other.recommended_id &&
195
- recommended == other.recommended &&
196
- latest_id == other.latest_id &&
197
- latest == other.latest &&
198
147
  slug == other.slug &&
199
148
  name == other.name &&
200
149
  website == other.website &&
201
150
  public == other.public &&
202
151
  created_at == other.created_at &&
203
- updated_at == other.updated_at &&
204
- builds == other.builds &&
205
- users == other.users &&
206
- teams == other.teams
152
+ updated_at == other.updated_at
207
153
  end
208
154
 
209
155
  # @see the `==` method
@@ -215,7 +161,7 @@ module Kleister
215
161
  # Calculates hash code according to all attributes.
216
162
  # @return [Integer] Hash code
217
163
  def hash
218
- [id, icon, logo, back, recommended_id, recommended, latest_id, latest, slug, name, website, public, created_at, updated_at, builds, users, teams].hash
164
+ [id, icon, logo, back, slug, name, website, public, created_at, updated_at].hash
219
165
  end
220
166
 
221
167
  # Builds the object from hash
@@ -14,14 +14,12 @@ require 'time'
14
14
  module Kleister
15
15
  # Model to represent pack background
16
16
  class PackBack
17
- attr_accessor :id, :pack_id, :pack, :slug, :content_type, :md5, :path, :url, :upload, :created_at, :updated_at
17
+ attr_accessor :id, :slug, :content_type, :md5, :path, :url, :upload, :created_at, :updated_at
18
18
 
19
19
  # Attribute mapping from ruby-style variable name to JSON key.
20
20
  def self.attribute_map
21
21
  {
22
22
  id: :id,
23
- pack_id: :pack_id,
24
- pack: :pack,
25
23
  slug: :slug,
26
24
  content_type: :content_type,
27
25
  md5: :md5,
@@ -42,8 +40,6 @@ module Kleister
42
40
  def self.openapi_types
43
41
  {
44
42
  id: :String,
45
- pack_id: :String,
46
- pack: :Pack,
47
43
  slug: :String,
48
44
  content_type: :String,
49
45
  md5: :String,
@@ -87,14 +83,6 @@ module Kleister
87
83
  self.id = attributes[:id]
88
84
  end
89
85
 
90
- if attributes.key?(:pack_id)
91
- self.pack_id = attributes[:pack_id]
92
- end
93
-
94
- if attributes.key?(:pack)
95
- self.pack = attributes[:pack]
96
- end
97
-
98
86
  if attributes.key?(:slug)
99
87
  self.slug = attributes[:slug]
100
88
  end
@@ -149,8 +137,6 @@ module Kleister
149
137
 
150
138
  self.class == other.class &&
151
139
  id == other.id &&
152
- pack_id == other.pack_id &&
153
- pack == other.pack &&
154
140
  slug == other.slug &&
155
141
  content_type == other.content_type &&
156
142
  md5 == other.md5 &&
@@ -170,7 +156,7 @@ module Kleister
170
156
  # Calculates hash code according to all attributes.
171
157
  # @return [Integer] Hash code
172
158
  def hash
173
- [id, pack_id, pack, slug, content_type, md5, path, url, upload, created_at, updated_at].hash
159
+ [id, slug, content_type, md5, path, url, upload, created_at, updated_at].hash
174
160
  end
175
161
 
176
162
  # Builds the object from hash
@@ -14,14 +14,12 @@ require 'time'
14
14
  module Kleister
15
15
  # Model to represent pack icon
16
16
  class PackIcon
17
- attr_accessor :id, :pack_id, :pack, :slug, :content_type, :md5, :path, :url, :upload, :created_at, :updated_at
17
+ attr_accessor :id, :slug, :content_type, :md5, :path, :url, :upload, :created_at, :updated_at
18
18
 
19
19
  # Attribute mapping from ruby-style variable name to JSON key.
20
20
  def self.attribute_map
21
21
  {
22
22
  id: :id,
23
- pack_id: :pack_id,
24
- pack: :pack,
25
23
  slug: :slug,
26
24
  content_type: :content_type,
27
25
  md5: :md5,
@@ -42,8 +40,6 @@ module Kleister
42
40
  def self.openapi_types
43
41
  {
44
42
  id: :String,
45
- pack_id: :String,
46
- pack: :Pack,
47
43
  slug: :String,
48
44
  content_type: :String,
49
45
  md5: :String,
@@ -87,14 +83,6 @@ module Kleister
87
83
  self.id = attributes[:id]
88
84
  end
89
85
 
90
- if attributes.key?(:pack_id)
91
- self.pack_id = attributes[:pack_id]
92
- end
93
-
94
- if attributes.key?(:pack)
95
- self.pack = attributes[:pack]
96
- end
97
-
98
86
  if attributes.key?(:slug)
99
87
  self.slug = attributes[:slug]
100
88
  end
@@ -149,8 +137,6 @@ module Kleister
149
137
 
150
138
  self.class == other.class &&
151
139
  id == other.id &&
152
- pack_id == other.pack_id &&
153
- pack == other.pack &&
154
140
  slug == other.slug &&
155
141
  content_type == other.content_type &&
156
142
  md5 == other.md5 &&
@@ -170,7 +156,7 @@ module Kleister
170
156
  # Calculates hash code according to all attributes.
171
157
  # @return [Integer] Hash code
172
158
  def hash
173
- [id, pack_id, pack, slug, content_type, md5, path, url, upload, created_at, updated_at].hash
159
+ [id, slug, content_type, md5, path, url, upload, created_at, updated_at].hash
174
160
  end
175
161
 
176
162
  # Builds the object from hash
@@ -14,14 +14,12 @@ require 'time'
14
14
  module Kleister
15
15
  # Model to represent pack logo
16
16
  class PackLogo
17
- attr_accessor :id, :pack_id, :pack, :slug, :content_type, :md5, :path, :url, :upload, :created_at, :updated_at
17
+ attr_accessor :id, :slug, :content_type, :md5, :path, :url, :upload, :created_at, :updated_at
18
18
 
19
19
  # Attribute mapping from ruby-style variable name to JSON key.
20
20
  def self.attribute_map
21
21
  {
22
22
  id: :id,
23
- pack_id: :pack_id,
24
- pack: :pack,
25
23
  slug: :slug,
26
24
  content_type: :content_type,
27
25
  md5: :md5,
@@ -42,8 +40,6 @@ module Kleister
42
40
  def self.openapi_types
43
41
  {
44
42
  id: :String,
45
- pack_id: :String,
46
- pack: :Pack,
47
43
  slug: :String,
48
44
  content_type: :String,
49
45
  md5: :String,
@@ -87,14 +83,6 @@ module Kleister
87
83
  self.id = attributes[:id]
88
84
  end
89
85
 
90
- if attributes.key?(:pack_id)
91
- self.pack_id = attributes[:pack_id]
92
- end
93
-
94
- if attributes.key?(:pack)
95
- self.pack = attributes[:pack]
96
- end
97
-
98
86
  if attributes.key?(:slug)
99
87
  self.slug = attributes[:slug]
100
88
  end
@@ -149,8 +137,6 @@ module Kleister
149
137
 
150
138
  self.class == other.class &&
151
139
  id == other.id &&
152
- pack_id == other.pack_id &&
153
- pack == other.pack &&
154
140
  slug == other.slug &&
155
141
  content_type == other.content_type &&
156
142
  md5 == other.md5 &&
@@ -170,7 +156,7 @@ module Kleister
170
156
  # Calculates hash code according to all attributes.
171
157
  # @return [Integer] Hash code
172
158
  def hash
173
- [id, pack_id, pack, slug, content_type, md5, path, url, upload, created_at, updated_at].hash
159
+ [id, slug, content_type, md5, path, url, upload, created_at, updated_at].hash
174
160
  end
175
161
 
176
162
  # Builds the object from hash
@@ -88,7 +88,7 @@ module Kleister
88
88
  self.perm = if attributes.key?(:perm)
89
89
  attributes[:perm]
90
90
  else
91
- 'team'
91
+ 'user'
92
92
  end
93
93
  end
94
94
 
@@ -110,7 +110,7 @@ module Kleister
110
110
  warn '[DEPRECATED] the `valid?` method is obsolete'
111
111
  return false if @team.nil?
112
112
 
113
- perm_validator = EnumAttributeValidator.new('String', %w[team admin owner])
113
+ perm_validator = EnumAttributeValidator.new('String', %w[user admin owner])
114
114
  return false unless perm_validator.valid?(@perm)
115
115
 
116
116
  true
@@ -119,7 +119,7 @@ module Kleister
119
119
  # Custom attribute writer method checking allowed values (enum).
120
120
  # @param [Object] perm Object to be assigned
121
121
  def perm=(perm)
122
- validator = EnumAttributeValidator.new('String', %w[team admin owner])
122
+ validator = EnumAttributeValidator.new('String', %w[user admin owner])
123
123
  unless validator.valid?(perm)
124
124
  raise ArgumentError, "invalid value for \"perm\", must be one of #{validator.allowable_values}."
125
125
  end
@@ -14,7 +14,7 @@ require 'time'
14
14
  module Kleister
15
15
  # Model to represent team
16
16
  class Team
17
- attr_accessor :id, :slug, :name, :created_at, :updated_at, :users, :packs, :mods
17
+ attr_accessor :id, :slug, :name, :created_at, :updated_at
18
18
 
19
19
  # Attribute mapping from ruby-style variable name to JSON key.
20
20
  def self.attribute_map
@@ -23,10 +23,7 @@ module Kleister
23
23
  slug: :slug,
24
24
  name: :name,
25
25
  created_at: :created_at,
26
- updated_at: :updated_at,
27
- users: :users,
28
- packs: :packs,
29
- mods: :mods
26
+ updated_at: :updated_at
30
27
  }
31
28
  end
32
29
 
@@ -42,10 +39,7 @@ module Kleister
42
39
  slug: :String,
43
40
  name: :String,
44
41
  created_at: :Time,
45
- updated_at: :Time,
46
- users: :'Array<UserTeam>',
47
- packs: :'Array<TeamPack>',
48
- mods: :'Array<TeamMod>'
42
+ updated_at: :Time
49
43
  }
50
44
  end
51
45
 
@@ -54,9 +48,6 @@ module Kleister
54
48
  Set.new(%i[
55
49
  slug
56
50
  name
57
- users
58
- packs
59
- mods
60
51
  ])
61
52
  end
62
53
 
@@ -95,18 +86,6 @@ module Kleister
95
86
  if attributes.key?(:updated_at)
96
87
  self.updated_at = attributes[:updated_at]
97
88
  end
98
-
99
- if attributes.key?(:users) && (value = attributes[:users]).is_a?(Array)
100
- self.users = value
101
- end
102
-
103
- if attributes.key?(:packs) && (value = attributes[:packs]).is_a?(Array)
104
- self.packs = value
105
- end
106
-
107
- if attributes.key?(:mods) && (value = attributes[:mods]).is_a?(Array)
108
- self.mods = value
109
- end
110
89
  end
111
90
 
112
91
  # Show invalid properties with the reasons. Usually used together with valid?
@@ -133,10 +112,7 @@ module Kleister
133
112
  slug == other.slug &&
134
113
  name == other.name &&
135
114
  created_at == other.created_at &&
136
- updated_at == other.updated_at &&
137
- users == other.users &&
138
- packs == other.packs &&
139
- mods == other.mods
115
+ updated_at == other.updated_at
140
116
  end
141
117
 
142
118
  # @see the `==` method
@@ -148,7 +124,7 @@ module Kleister
148
124
  # Calculates hash code according to all attributes.
149
125
  # @return [Integer] Hash code
150
126
  def hash
151
- [id, slug, name, created_at, updated_at, users, packs, mods].hash
127
+ [id, slug, name, created_at, updated_at].hash
152
128
  end
153
129
 
154
130
  # Builds the object from hash
@@ -109,7 +109,7 @@ module Kleister
109
109
  self.perm = if attributes.key?(:perm)
110
110
  attributes[:perm]
111
111
  else
112
- 'team'
112
+ 'user'
113
113
  end
114
114
 
115
115
  if attributes.key?(:created_at)
@@ -144,7 +144,7 @@ module Kleister
144
144
  return false if @team_id.nil?
145
145
  return false if @mod_id.nil?
146
146
 
147
- perm_validator = EnumAttributeValidator.new('String', %w[team admin owner])
147
+ perm_validator = EnumAttributeValidator.new('String', %w[user admin owner])
148
148
  return false unless perm_validator.valid?(@perm)
149
149
 
150
150
  true
@@ -153,7 +153,7 @@ module Kleister
153
153
  # Custom attribute writer method checking allowed values (enum).
154
154
  # @param [Object] perm Object to be assigned
155
155
  def perm=(perm)
156
- validator = EnumAttributeValidator.new('String', %w[team admin owner])
156
+ validator = EnumAttributeValidator.new('String', %w[user admin owner])
157
157
  unless validator.valid?(perm)
158
158
  raise ArgumentError, "invalid value for \"perm\", must be one of #{validator.allowable_values}."
159
159
  end
@@ -88,7 +88,7 @@ module Kleister
88
88
  self.perm = if attributes.key?(:perm)
89
89
  attributes[:perm]
90
90
  else
91
- 'team'
91
+ 'user'
92
92
  end
93
93
  end
94
94
 
@@ -110,7 +110,7 @@ module Kleister
110
110
  warn '[DEPRECATED] the `valid?` method is obsolete'
111
111
  return false if @mod.nil?
112
112
 
113
- perm_validator = EnumAttributeValidator.new('String', %w[team admin owner])
113
+ perm_validator = EnumAttributeValidator.new('String', %w[user admin owner])
114
114
  return false unless perm_validator.valid?(@perm)
115
115
 
116
116
  true
@@ -119,7 +119,7 @@ module Kleister
119
119
  # Custom attribute writer method checking allowed values (enum).
120
120
  # @param [Object] perm Object to be assigned
121
121
  def perm=(perm)
122
- validator = EnumAttributeValidator.new('String', %w[team admin owner])
122
+ validator = EnumAttributeValidator.new('String', %w[user admin owner])
123
123
  unless validator.valid?(perm)
124
124
  raise ArgumentError, "invalid value for \"perm\", must be one of #{validator.allowable_values}."
125
125
  end
@@ -109,7 +109,7 @@ module Kleister
109
109
  self.perm = if attributes.key?(:perm)
110
110
  attributes[:perm]
111
111
  else
112
- 'team'
112
+ 'user'
113
113
  end
114
114
 
115
115
  if attributes.key?(:created_at)
@@ -144,7 +144,7 @@ module Kleister
144
144
  return false if @team_id.nil?
145
145
  return false if @pack_id.nil?
146
146
 
147
- perm_validator = EnumAttributeValidator.new('String', %w[team admin owner])
147
+ perm_validator = EnumAttributeValidator.new('String', %w[user admin owner])
148
148
  return false unless perm_validator.valid?(@perm)
149
149
 
150
150
  true
@@ -153,7 +153,7 @@ module Kleister
153
153
  # Custom attribute writer method checking allowed values (enum).
154
154
  # @param [Object] perm Object to be assigned
155
155
  def perm=(perm)
156
- validator = EnumAttributeValidator.new('String', %w[team admin owner])
156
+ validator = EnumAttributeValidator.new('String', %w[user admin owner])
157
157
  unless validator.valid?(perm)
158
158
  raise ArgumentError, "invalid value for \"perm\", must be one of #{validator.allowable_values}."
159
159
  end
@@ -88,7 +88,7 @@ module Kleister
88
88
  self.perm = if attributes.key?(:perm)
89
89
  attributes[:perm]
90
90
  else
91
- 'team'
91
+ 'user'
92
92
  end
93
93
  end
94
94
 
@@ -110,7 +110,7 @@ module Kleister
110
110
  warn '[DEPRECATED] the `valid?` method is obsolete'
111
111
  return false if @pack.nil?
112
112
 
113
- perm_validator = EnumAttributeValidator.new('String', %w[team admin owner])
113
+ perm_validator = EnumAttributeValidator.new('String', %w[user admin owner])
114
114
  return false unless perm_validator.valid?(@perm)
115
115
 
116
116
  true
@@ -119,7 +119,7 @@ module Kleister
119
119
  # Custom attribute writer method checking allowed values (enum).
120
120
  # @param [Object] perm Object to be assigned
121
121
  def perm=(perm)
122
- validator = EnumAttributeValidator.new('String', %w[team admin owner])
122
+ validator = EnumAttributeValidator.new('String', %w[user admin owner])
123
123
  unless validator.valid?(perm)
124
124
  raise ArgumentError, "invalid value for \"perm\", must be one of #{validator.allowable_values}."
125
125
  end
@@ -14,7 +14,7 @@ require 'time'
14
14
  module Kleister
15
15
  # Model to represent user
16
16
  class User
17
- attr_accessor :id, :username, :password, :email, :fullname, :profile, :admin, :active, :created_at, :updated_at, :auths, :teams, :packs, :mods
17
+ attr_accessor :id, :username, :password, :email, :fullname, :profile, :admin, :active, :created_at, :updated_at, :auths
18
18
 
19
19
  # Attribute mapping from ruby-style variable name to JSON key.
20
20
  def self.attribute_map
@@ -29,10 +29,7 @@ module Kleister
29
29
  active: :active,
30
30
  created_at: :created_at,
31
31
  updated_at: :updated_at,
32
- auths: :auths,
33
- teams: :teams,
34
- packs: :packs,
35
- mods: :mods
32
+ auths: :auths
36
33
  }
37
34
  end
38
35
 
@@ -54,10 +51,7 @@ module Kleister
54
51
  active: :Boolean,
55
52
  created_at: :Time,
56
53
  updated_at: :Time,
57
- auths: :'Array<UserAuth>',
58
- teams: :'Array<UserTeam>',
59
- packs: :'Array<UserPack>',
60
- mods: :'Array<UserMod>'
54
+ auths: :'Array<UserAuth>'
61
55
  }
62
56
  end
63
57
 
@@ -72,9 +66,6 @@ module Kleister
72
66
  admin
73
67
  active
74
68
  auths
75
- teams
76
- packs
77
- mods
78
69
  ])
79
70
  end
80
71
 
@@ -137,18 +128,6 @@ module Kleister
137
128
  if attributes.key?(:auths) && (value = attributes[:auths]).is_a?(Array)
138
129
  self.auths = value
139
130
  end
140
-
141
- if attributes.key?(:teams) && (value = attributes[:teams]).is_a?(Array)
142
- self.teams = value
143
- end
144
-
145
- if attributes.key?(:packs) && (value = attributes[:packs]).is_a?(Array)
146
- self.packs = value
147
- end
148
-
149
- if attributes.key?(:mods) && (value = attributes[:mods]).is_a?(Array)
150
- self.mods = value
151
- end
152
131
  end
153
132
 
154
133
  # Show invalid properties with the reasons. Usually used together with valid?
@@ -181,10 +160,7 @@ module Kleister
181
160
  active == other.active &&
182
161
  created_at == other.created_at &&
183
162
  updated_at == other.updated_at &&
184
- auths == other.auths &&
185
- teams == other.teams &&
186
- packs == other.packs &&
187
- mods == other.mods
163
+ auths == other.auths
188
164
  end
189
165
 
190
166
  # @see the `==` method
@@ -196,7 +172,7 @@ module Kleister
196
172
  # Calculates hash code according to all attributes.
197
173
  # @return [Integer] Hash code
198
174
  def hash
199
- [id, username, password, email, fullname, profile, admin, active, created_at, updated_at, auths, teams, packs, mods].hash
175
+ [id, username, password, email, fullname, profile, admin, active, created_at, updated_at, auths].hash
200
176
  end
201
177
 
202
178
  # Builds the object from hash