Class: ZoomUs::Models::InlineResponse20031Users
- Inherits:
-
Object
- Object
- ZoomUs::Models::InlineResponse20031Users
- Defined in:
- lib/zoom_us/models/inline_response_200_31_users.rb
Instance Attribute Summary collapse
-
#calls_receive ⇒ Object
Total number of instant meeting calls received by the user.
-
#calls_send ⇒ Object
Total number of instant meeting calls made by the user.
-
#email ⇒ Object
User email.
-
#emoji_receive ⇒ Object
Total number of emojis received by the user.
-
#emoji_send ⇒ Object
Total number of emojis sent by the user.
-
#files_receive ⇒ Object
Total number of files received by the user.
-
#files_send ⇒ Object
Total number of files sent by the user.
-
#group_receive ⇒ Object
Total number of messages received by the user in channels.
-
#group_send ⇒ Object
Total number of messages sent by the user in channels.
-
#images_receive ⇒ Object
Total number of images received by the user.
-
#images_send ⇒ Object
Total number of images sent by the user.
-
#total_receive ⇒ Object
Total number of messages received by the user.
-
#total_send ⇒ Object
Total number of messages sent by the user.
-
#user_id ⇒ Object
User ID.
-
#user_name ⇒ Object
User display name.
-
#videos_receive ⇒ Object
Total number of video files received by the user.
-
#videos_send ⇒ Object
Total number of video files sent by the user.
-
#voice_receive ⇒ Object
Total number of voice files received by the user.
-
#voice_send ⇒ Object
Total number of voice files sent by the user.
Class Method Summary collapse
-
.attribute_map ⇒ Object
Attribute mapping from ruby-style variable name to JSON key.
-
.swagger_types ⇒ Object
Attribute type mapping.
Instance Method Summary collapse
-
#==(o) ⇒ Object
Checks equality by comparing each attribute.
-
#_deserialize(type, value) ⇒ Object
Deserializes the data based on type.
-
#_to_hash(value) ⇒ Hash
Outputs non-array value in the form of hash For object, use to_hash.
-
#build_from_hash(attributes) ⇒ Object
Builds the object from hash.
- #eql?(o) ⇒ Boolean
-
#hash ⇒ Fixnum
Calculates hash code according to all attributes.
-
#initialize(attributes = {}) ⇒ InlineResponse20031Users
constructor
Initializes the object.
-
#list_invalid_properties ⇒ Object
Show invalid properties with the reasons.
-
#to_body ⇒ Hash
to_body is an alias to to_hash (backward compatibility).
-
#to_hash ⇒ Hash
Returns the object in the form of hash.
-
#to_s ⇒ String
Returns the string representation of the object.
-
#valid? ⇒ Boolean
Check to see if the all the properties in the model are valid.
Constructor Details
#initialize(attributes = {}) ⇒ InlineResponse20031Users
Initializes the object
127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 |
# File 'lib/zoom_us/models/inline_response_200_31_users.rb', line 127 def initialize(attributes = {}) return unless attributes.is_a?(Hash) # convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v } if attributes.has_key?(:'user_id') self.user_id = attributes[:'user_id'] end if attributes.has_key?(:'user_name') self.user_name = attributes[:'user_name'] end if attributes.has_key?(:'email') self.email = attributes[:'email'] end if attributes.has_key?(:'total_send') self.total_send = attributes[:'total_send'] end if attributes.has_key?(:'total_receive') self.total_receive = attributes[:'total_receive'] end if attributes.has_key?(:'group_send') self.group_send = attributes[:'group_send'] end if attributes.has_key?(:'group_receive') self.group_receive = attributes[:'group_receive'] end if attributes.has_key?(:'calls_send') self.calls_send = attributes[:'calls_send'] end if attributes.has_key?(:'calls_receive') self.calls_receive = attributes[:'calls_receive'] end if attributes.has_key?(:'files_send') self.files_send = attributes[:'files_send'] end if attributes.has_key?(:'files_receive') self.files_receive = attributes[:'files_receive'] end if attributes.has_key?(:'images_send') self.images_send = attributes[:'images_send'] end if attributes.has_key?(:'images_receive') self.images_receive = attributes[:'images_receive'] end if attributes.has_key?(:'voice_send') self.voice_send = attributes[:'voice_send'] end if attributes.has_key?(:'voice_receive') self.voice_receive = attributes[:'voice_receive'] end if attributes.has_key?(:'videos_send') self.videos_send = attributes[:'videos_send'] end if attributes.has_key?(:'videos_receive') self.videos_receive = attributes[:'videos_receive'] end if attributes.has_key?(:'emoji_send') self.emoji_send = attributes[:'emoji_send'] end if attributes.has_key?(:'emoji_receive') self.emoji_receive = attributes[:'emoji_receive'] end end |
Instance Attribute Details
#calls_receive ⇒ Object
Total number of instant meeting calls received by the user.
43 44 45 |
# File 'lib/zoom_us/models/inline_response_200_31_users.rb', line 43 def calls_receive @calls_receive end |
#calls_send ⇒ Object
Total number of instant meeting calls made by the user.
40 41 42 |
# File 'lib/zoom_us/models/inline_response_200_31_users.rb', line 40 def calls_send @calls_send end |
#email ⇒ Object
User email.
25 26 27 |
# File 'lib/zoom_us/models/inline_response_200_31_users.rb', line 25 def email @email end |
#emoji_receive ⇒ Object
Total number of emojis received by the user.
73 74 75 |
# File 'lib/zoom_us/models/inline_response_200_31_users.rb', line 73 def emoji_receive @emoji_receive end |
#emoji_send ⇒ Object
Total number of emojis sent by the user.
70 71 72 |
# File 'lib/zoom_us/models/inline_response_200_31_users.rb', line 70 def emoji_send @emoji_send end |
#files_receive ⇒ Object
Total number of files received by the user.
49 50 51 |
# File 'lib/zoom_us/models/inline_response_200_31_users.rb', line 49 def files_receive @files_receive end |
#files_send ⇒ Object
Total number of files sent by the user.
46 47 48 |
# File 'lib/zoom_us/models/inline_response_200_31_users.rb', line 46 def files_send @files_send end |
#group_receive ⇒ Object
Total number of messages received by the user in channels.
37 38 39 |
# File 'lib/zoom_us/models/inline_response_200_31_users.rb', line 37 def group_receive @group_receive end |
#group_send ⇒ Object
Total number of messages sent by the user in channels.
34 35 36 |
# File 'lib/zoom_us/models/inline_response_200_31_users.rb', line 34 def group_send @group_send end |
#images_receive ⇒ Object
Total number of images received by the user.
55 56 57 |
# File 'lib/zoom_us/models/inline_response_200_31_users.rb', line 55 def images_receive @images_receive end |
#images_send ⇒ Object
Total number of images sent by the user.
52 53 54 |
# File 'lib/zoom_us/models/inline_response_200_31_users.rb', line 52 def images_send @images_send end |
#total_receive ⇒ Object
Total number of messages received by the user.
31 32 33 |
# File 'lib/zoom_us/models/inline_response_200_31_users.rb', line 31 def total_receive @total_receive end |
#total_send ⇒ Object
Total number of messages sent by the user.
28 29 30 |
# File 'lib/zoom_us/models/inline_response_200_31_users.rb', line 28 def total_send @total_send end |
#user_id ⇒ Object
User ID.
19 20 21 |
# File 'lib/zoom_us/models/inline_response_200_31_users.rb', line 19 def user_id @user_id end |
#user_name ⇒ Object
User display name.
22 23 24 |
# File 'lib/zoom_us/models/inline_response_200_31_users.rb', line 22 def user_name @user_name end |
#videos_receive ⇒ Object
Total number of video files received by the user.
67 68 69 |
# File 'lib/zoom_us/models/inline_response_200_31_users.rb', line 67 def videos_receive @videos_receive end |
#videos_send ⇒ Object
Total number of video files sent by the user.
64 65 66 |
# File 'lib/zoom_us/models/inline_response_200_31_users.rb', line 64 def videos_send @videos_send end |
#voice_receive ⇒ Object
Total number of voice files received by the user.
61 62 63 |
# File 'lib/zoom_us/models/inline_response_200_31_users.rb', line 61 def voice_receive @voice_receive end |
#voice_send ⇒ Object
Total number of voice files sent by the user.
58 59 60 |
# File 'lib/zoom_us/models/inline_response_200_31_users.rb', line 58 def voice_send @voice_send end |
Class Method Details
.attribute_map ⇒ Object
Attribute mapping from ruby-style variable name to JSON key.
76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 |
# File 'lib/zoom_us/models/inline_response_200_31_users.rb', line 76 def self.attribute_map { :'user_id' => :'user_id', :'user_name' => :'user_name', :'email' => :'email', :'total_send' => :'total_send', :'total_receive' => :'total_receive', :'group_send' => :'group_send', :'group_receive' => :'group_receive', :'calls_send' => :'calls_send', :'calls_receive' => :'calls_receive', :'files_send' => :'files_send', :'files_receive' => :'files_receive', :'images_send' => :'images_send', :'images_receive' => :'images_receive', :'voice_send' => :'voice_send', :'voice_receive' => :'voice_receive', :'videos_send' => :'videos_send', :'videos_receive' => :'videos_receive', :'emoji_send' => :'emoji_send', :'emoji_receive' => :'emoji_receive' } end |
.swagger_types ⇒ Object
Attribute type mapping.
101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 |
# File 'lib/zoom_us/models/inline_response_200_31_users.rb', line 101 def self.swagger_types { :'user_id' => :'String', :'user_name' => :'String', :'email' => :'String', :'total_send' => :'Integer', :'total_receive' => :'Integer', :'group_send' => :'Integer', :'group_receive' => :'Integer', :'calls_send' => :'Integer', :'calls_receive' => :'Integer', :'files_send' => :'Integer', :'files_receive' => :'Integer', :'images_send' => :'Integer', :'images_receive' => :'Integer', :'voice_send' => :'Integer', :'voice_receive' => :'Integer', :'videos_send' => :'Integer', :'videos_receive' => :'Integer', :'emoji_send' => :'Integer', :'emoji_receive' => :'Integer' } end |
Instance Method Details
#==(o) ⇒ Object
Checks equality by comparing each attribute.
225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 |
# File 'lib/zoom_us/models/inline_response_200_31_users.rb', line 225 def ==(o) return true if self.equal?(o) self.class == o.class && user_id == o.user_id && user_name == o.user_name && email == o.email && total_send == o.total_send && total_receive == o.total_receive && group_send == o.group_send && group_receive == o.group_receive && calls_send == o.calls_send && calls_receive == o.calls_receive && files_send == o.files_send && files_receive == o.files_receive && images_send == o.images_send && images_receive == o.images_receive && voice_send == o.voice_send && voice_receive == o.voice_receive && videos_send == o.videos_send && videos_receive == o.videos_receive && emoji_send == o.emoji_send && emoji_receive == o.emoji_receive end |
#_deserialize(type, value) ⇒ Object
Deserializes the data based on type
285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 |
# File 'lib/zoom_us/models/inline_response_200_31_users.rb', line 285 def _deserialize(type, value) case type.to_sym when :DateTime ::DateTime.parse(value) when :Date ::Date.parse(value) when :String value.to_s when :Integer value.to_i when :Float value.to_f when :BOOLEAN if value.to_s =~ /\A(true|t|yes|y|1)\z/i true else false end when :Object # generic object (usually a Hash), return directly value when /\AArray<(?<inner_type>.+)>\z/ inner_type = Regexp.last_match[:inner_type] value.map { |v| _deserialize(inner_type, v) } when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/ k_type = Regexp.last_match[:k_type] v_type = Regexp.last_match[:v_type] {}.tap do |hash| value.each do |k, v| hash[_deserialize(k_type, k)] = _deserialize(v_type, v) end end else # model temp_model = Models.const_get(type).new temp_model.build_from_hash(value) end end |
#_to_hash(value) ⇒ Hash
Outputs non-array value in the form of hash For object, use to_hash. Otherwise, just return the value
351 352 353 354 355 356 357 358 359 360 361 362 363 |
# File 'lib/zoom_us/models/inline_response_200_31_users.rb', line 351 def _to_hash(value) if value.is_a?(Array) value.compact.map { |v| _to_hash(v) } elsif value.is_a?(Hash) {}.tap do |hash| value.each { |k, v| hash[k] = _to_hash(v) } end elsif value.respond_to? :to_hash value.to_hash else value end end |
#build_from_hash(attributes) ⇒ Object
Builds the object from hash
264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 |
# File 'lib/zoom_us/models/inline_response_200_31_users.rb', line 264 def build_from_hash(attributes) return nil unless attributes.is_a?(Hash) self.class.swagger_types.each_pair do |key, type| if type =~ /\AArray<(.*)>/i # check to ensure the input is an array given that the the attribute # is documented as an array but the input is not if attributes[self.class.attribute_map[key]].is_a?(Array) self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) }) end elsif !attributes[self.class.attribute_map[key]].nil? self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]])) end # or else data not found in attributes(hash), not an issue as the data can be optional end self end |
#eql?(o) ⇒ Boolean
251 252 253 |
# File 'lib/zoom_us/models/inline_response_200_31_users.rb', line 251 def eql?(o) self == o end |
#hash ⇒ Fixnum
Calculates hash code according to all attributes.
257 258 259 |
# File 'lib/zoom_us/models/inline_response_200_31_users.rb', line 257 def hash [user_id, user_name, email, total_send, total_receive, group_send, group_receive, calls_send, calls_receive, files_send, files_receive, images_send, images_receive, voice_send, voice_receive, videos_send, videos_receive, emoji_send, emoji_receive].hash end |
#list_invalid_properties ⇒ Object
Show invalid properties with the reasons. Usually used together with valid?
212 213 214 215 |
# File 'lib/zoom_us/models/inline_response_200_31_users.rb', line 212 def list_invalid_properties invalid_properties = Array.new invalid_properties end |
#to_body ⇒ Hash
to_body is an alias to to_hash (backward compatibility)
331 332 333 |
# File 'lib/zoom_us/models/inline_response_200_31_users.rb', line 331 def to_body to_hash end |
#to_hash ⇒ Hash
Returns the object in the form of hash
337 338 339 340 341 342 343 344 345 |
# File 'lib/zoom_us/models/inline_response_200_31_users.rb', line 337 def to_hash hash = {} self.class.attribute_map.each_pair do |attr, param| value = self.send(attr) next if value.nil? hash[param] = _to_hash(value) end hash end |
#to_s ⇒ String
Returns the string representation of the object
325 326 327 |
# File 'lib/zoom_us/models/inline_response_200_31_users.rb', line 325 def to_s to_hash.to_s end |
#valid? ⇒ Boolean
Check to see if the all the properties in the model are valid
219 220 221 |
# File 'lib/zoom_us/models/inline_response_200_31_users.rb', line 219 def valid? true end |