Class: Falcon::DomainIOC

Inherits:
Object
  • Object
show all
Defined in:
lib/crimson-falcon/models/domain_ioc.rb

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(attributes = {}) ⇒ DomainIOC

Initializes the object

Parameters:

  • attributes (Hash) (defaults to: {})

    Model attributes in the form of hash



204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
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
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
# File 'lib/crimson-falcon/models/domain_ioc.rb', line 204

def initialize(attributes = {})
  if (!attributes.is_a?(Hash))
    fail ArgumentError, "The input argument (attributes) must be a hash in `Falcon::DomainIOC` initialize method"
  end

  # check to see if the attribute exists and convert string to symbol for hash key
  attributes = attributes.each_with_object({}) { |(k, v), h|
    if (!self.class.attribute_map.key?(k.to_sym))
      fail ArgumentError, "`#{k}` is not a valid attribute in `Falcon::DomainIOC`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
    end
    h[k.to_sym] = v
  }

  if attributes.key?(:'at_accounts')
    if (value = attributes[:'at_accounts']).is_a?(Array)
      self.at_accounts = value
    end
  end

  if attributes.key?(:'aws_clis')
    if (value = attributes[:'aws_clis']).is_a?(Array)
      self.aws_clis = value
    end
  end

  if attributes.key?(:'aws_ids')
    if (value = attributes[:'aws_ids']).is_a?(Array)
      self.aws_ids = value
    end
  end

  if attributes.key?(:'aws_secrets')
    if (value = attributes[:'aws_secrets']).is_a?(Array)
      self.aws_secrets = value
    end
  end

  if attributes.key?(:'bitcoin_address')
    if (value = attributes[:'bitcoin_address']).is_a?(Array)
      self.bitcoin_address = value
    end
  end

  if attributes.key?(:'cves')
    if (value = attributes[:'cves']).is_a?(Array)
      self.cves = value
    end
  end

  if attributes.key?(:'discord_urls')
    if (value = attributes[:'discord_urls']).is_a?(Array)
      self.discord_urls = value
    end
  end

  if attributes.key?(:'domains')
    if (value = attributes[:'domains']).is_a?(Array)
      self.domains = value
    end
  end

  if attributes.key?(:'email_domains')
    if (value = attributes[:'email_domains']).is_a?(Array)
      self.email_domains = value
    end
  end

  if attributes.key?(:'emails')
    if (value = attributes[:'emails']).is_a?(Array)
      self.emails = value
    end
  end

  if attributes.key?(:'emails_local_part')
    if (value = attributes[:'emails_local_part']).is_a?(Array)
      self.emails_local_part = value
    end
  end

  if attributes.key?(:'ethereum_addresses')
    if (value = attributes[:'ethereum_addresses']).is_a?(Array)
      self.ethereum_addresses = value
    end
  end

  if attributes.key?(:'generic_apis')
    if (value = attributes[:'generic_apis']).is_a?(Array)
      self.generic_apis = value
    end
  end

  if attributes.key?(:'github_apis')
    if (value = attributes[:'github_apis']).is_a?(Array)
      self.github_apis = value
    end
  end

  if attributes.key?(:'google_apis')
    if (value = attributes[:'google_apis']).is_a?(Array)
      self.google_apis = value
    end
  end

  if attributes.key?(:'hashtags')
    if (value = attributes[:'hashtags']).is_a?(Array)
      self.hashtags = value
    end
  end

  if attributes.key?(:'i2p_urls')
    if (value = attributes[:'i2p_urls']).is_a?(Array)
      self.i2p_urls = value
    end
  end

  if attributes.key?(:'icq_urls')
    if (value = attributes[:'icq_urls']).is_a?(Array)
      self.icq_urls = value
    end
  end

  if attributes.key?(:'ips')
    if (value = attributes[:'ips']).is_a?(Array)
      self.ips = value
    end
  end

  if attributes.key?(:'magnet_urls')
    if (value = attributes[:'magnet_urls']).is_a?(Array)
      self.magnet_urls = value
    end
  end

  if attributes.key?(:'md5s')
    if (value = attributes[:'md5s']).is_a?(Array)
      self.md5s = value
    end
  end

  if attributes.key?(:'monero_addresses')
    if (value = attributes[:'monero_addresses']).is_a?(Array)
      self.monero_addresses = value
    end
  end

  if attributes.key?(:'onion_urls')
    if (value = attributes[:'onion_urls']).is_a?(Array)
      self.onion_urls = value
    end
  end

  if attributes.key?(:'paste_urls')
    if (value = attributes[:'paste_urls']).is_a?(Array)
      self.paste_urls = value
    end
  end

  if attributes.key?(:'phone_numbers')
    if (value = attributes[:'phone_numbers']).is_a?(Array)
      self.phone_numbers = value
    end
  end

  if attributes.key?(:'s3_buckets')
    if (value = attributes[:'s3_buckets']).is_a?(Array)
      self.s3_buckets = value
    end
  end

  if attributes.key?(:'sha1s')
    if (value = attributes[:'sha1s']).is_a?(Array)
      self.sha1s = value
    end
  end

  if attributes.key?(:'sha256s')
    if (value = attributes[:'sha256s']).is_a?(Array)
      self.sha256s = value
    end
  end

  if attributes.key?(:'sha512s')
    if (value = attributes[:'sha512s']).is_a?(Array)
      self.sha512s = value
    end
  end

  if attributes.key?(:'skype_urls')
    if (value = attributes[:'skype_urls']).is_a?(Array)
      self.skype_urls = value
    end
  end

  if attributes.key?(:'slack_apis')
    if (value = attributes[:'slack_apis']).is_a?(Array)
      self.slack_apis = value
    end
  end

  if attributes.key?(:'sqs_queues')
    if (value = attributes[:'sqs_queues']).is_a?(Array)
      self.sqs_queues = value
    end
  end

  if attributes.key?(:'telegram_urls')
    if (value = attributes[:'telegram_urls']).is_a?(Array)
      self.telegram_urls = value
    end
  end

  if attributes.key?(:'torrent_urls')
    if (value = attributes[:'torrent_urls']).is_a?(Array)
      self.torrent_urls = value
    end
  end

  if attributes.key?(:'urls')
    if (value = attributes[:'urls']).is_a?(Array)
      self.urls = value
    end
  end

  if attributes.key?(:'whatsapp_urls')
    if (value = attributes[:'whatsapp_urls']).is_a?(Array)
      self.whatsapp_urls = value
    end
  end
end

Instance Attribute Details

#at_accountsObject

Returns the value of attribute at_accounts.



35
36
37
# File 'lib/crimson-falcon/models/domain_ioc.rb', line 35

def at_accounts
  @at_accounts
end

#aws_clisObject

Returns the value of attribute aws_clis.



37
38
39
# File 'lib/crimson-falcon/models/domain_ioc.rb', line 37

def aws_clis
  @aws_clis
end

#aws_idsObject

Returns the value of attribute aws_ids.



39
40
41
# File 'lib/crimson-falcon/models/domain_ioc.rb', line 39

def aws_ids
  @aws_ids
end

#aws_secretsObject

Returns the value of attribute aws_secrets.



41
42
43
# File 'lib/crimson-falcon/models/domain_ioc.rb', line 41

def aws_secrets
  @aws_secrets
end

#bitcoin_addressObject

Returns the value of attribute bitcoin_address.



43
44
45
# File 'lib/crimson-falcon/models/domain_ioc.rb', line 43

def bitcoin_address
  @bitcoin_address
end

#cvesObject

Returns the value of attribute cves.



45
46
47
# File 'lib/crimson-falcon/models/domain_ioc.rb', line 45

def cves
  @cves
end

#discord_urlsObject

Returns the value of attribute discord_urls.



47
48
49
# File 'lib/crimson-falcon/models/domain_ioc.rb', line 47

def discord_urls
  @discord_urls
end

#domainsObject

Returns the value of attribute domains.



49
50
51
# File 'lib/crimson-falcon/models/domain_ioc.rb', line 49

def domains
  @domains
end

#email_domainsObject

Returns the value of attribute email_domains.



51
52
53
# File 'lib/crimson-falcon/models/domain_ioc.rb', line 51

def email_domains
  @email_domains
end

#emailsObject

Returns the value of attribute emails.



53
54
55
# File 'lib/crimson-falcon/models/domain_ioc.rb', line 53

def emails
  @emails
end

#emails_local_partObject

Returns the value of attribute emails_local_part.



55
56
57
# File 'lib/crimson-falcon/models/domain_ioc.rb', line 55

def emails_local_part
  @emails_local_part
end

#ethereum_addressesObject

Returns the value of attribute ethereum_addresses.



57
58
59
# File 'lib/crimson-falcon/models/domain_ioc.rb', line 57

def ethereum_addresses
  @ethereum_addresses
end

#generic_apisObject

Returns the value of attribute generic_apis.



59
60
61
# File 'lib/crimson-falcon/models/domain_ioc.rb', line 59

def generic_apis
  @generic_apis
end

#github_apisObject

Returns the value of attribute github_apis.



61
62
63
# File 'lib/crimson-falcon/models/domain_ioc.rb', line 61

def github_apis
  @github_apis
end

#google_apisObject

Returns the value of attribute google_apis.



63
64
65
# File 'lib/crimson-falcon/models/domain_ioc.rb', line 63

def google_apis
  @google_apis
end

#hashtagsObject

Returns the value of attribute hashtags.



65
66
67
# File 'lib/crimson-falcon/models/domain_ioc.rb', line 65

def hashtags
  @hashtags
end

#i2p_urlsObject

Returns the value of attribute i2p_urls.



67
68
69
# File 'lib/crimson-falcon/models/domain_ioc.rb', line 67

def i2p_urls
  @i2p_urls
end

#icq_urlsObject

Returns the value of attribute icq_urls.



69
70
71
# File 'lib/crimson-falcon/models/domain_ioc.rb', line 69

def icq_urls
  @icq_urls
end

#ipsObject

Returns the value of attribute ips.



71
72
73
# File 'lib/crimson-falcon/models/domain_ioc.rb', line 71

def ips
  @ips
end

#magnet_urlsObject

Returns the value of attribute magnet_urls.



73
74
75
# File 'lib/crimson-falcon/models/domain_ioc.rb', line 73

def magnet_urls
  @magnet_urls
end

#md5sObject

Returns the value of attribute md5s.



75
76
77
# File 'lib/crimson-falcon/models/domain_ioc.rb', line 75

def md5s
  @md5s
end

#monero_addressesObject

Returns the value of attribute monero_addresses.



77
78
79
# File 'lib/crimson-falcon/models/domain_ioc.rb', line 77

def monero_addresses
  @monero_addresses
end

#onion_urlsObject

Returns the value of attribute onion_urls.



79
80
81
# File 'lib/crimson-falcon/models/domain_ioc.rb', line 79

def onion_urls
  @onion_urls
end

#paste_urlsObject

Returns the value of attribute paste_urls.



81
82
83
# File 'lib/crimson-falcon/models/domain_ioc.rb', line 81

def paste_urls
  @paste_urls
end

#phone_numbersObject

Returns the value of attribute phone_numbers.



83
84
85
# File 'lib/crimson-falcon/models/domain_ioc.rb', line 83

def phone_numbers
  @phone_numbers
end

#s3_bucketsObject

Returns the value of attribute s3_buckets.



85
86
87
# File 'lib/crimson-falcon/models/domain_ioc.rb', line 85

def s3_buckets
  @s3_buckets
end

#sha1sObject

Returns the value of attribute sha1s.



87
88
89
# File 'lib/crimson-falcon/models/domain_ioc.rb', line 87

def sha1s
  @sha1s
end

#sha256sObject

Returns the value of attribute sha256s.



89
90
91
# File 'lib/crimson-falcon/models/domain_ioc.rb', line 89

def sha256s
  @sha256s
end

#sha512sObject

Returns the value of attribute sha512s.



91
92
93
# File 'lib/crimson-falcon/models/domain_ioc.rb', line 91

def sha512s
  @sha512s
end

#skype_urlsObject

Returns the value of attribute skype_urls.



93
94
95
# File 'lib/crimson-falcon/models/domain_ioc.rb', line 93

def skype_urls
  @skype_urls
end

#slack_apisObject

Returns the value of attribute slack_apis.



95
96
97
# File 'lib/crimson-falcon/models/domain_ioc.rb', line 95

def slack_apis
  @slack_apis
end

#sqs_queuesObject

Returns the value of attribute sqs_queues.



97
98
99
# File 'lib/crimson-falcon/models/domain_ioc.rb', line 97

def sqs_queues
  @sqs_queues
end

#telegram_urlsObject

Returns the value of attribute telegram_urls.



99
100
101
# File 'lib/crimson-falcon/models/domain_ioc.rb', line 99

def telegram_urls
  @telegram_urls
end

#torrent_urlsObject

Returns the value of attribute torrent_urls.



101
102
103
# File 'lib/crimson-falcon/models/domain_ioc.rb', line 101

def torrent_urls
  @torrent_urls
end

#urlsObject

Returns the value of attribute urls.



103
104
105
# File 'lib/crimson-falcon/models/domain_ioc.rb', line 103

def urls
  @urls
end

#whatsapp_urlsObject

Returns the value of attribute whatsapp_urls.



105
106
107
# File 'lib/crimson-falcon/models/domain_ioc.rb', line 105

def whatsapp_urls
  @whatsapp_urls
end

Class Method Details

.acceptable_attributesObject

Returns all the JSON keys this model knows about



150
151
152
# File 'lib/crimson-falcon/models/domain_ioc.rb', line 150

def self.acceptable_attributes
  attribute_map.values
end

.attribute_mapObject

Attribute mapping from ruby-style variable name to JSON key.



108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
# File 'lib/crimson-falcon/models/domain_ioc.rb', line 108

def self.attribute_map
  {
    :'at_accounts' => :'at_accounts',
    :'aws_clis' => :'aws_clis',
    :'aws_ids' => :'aws_ids',
    :'aws_secrets' => :'aws_secrets',
    :'bitcoin_address' => :'bitcoin_address',
    :'cves' => :'cves',
    :'discord_urls' => :'discord_urls',
    :'domains' => :'domains',
    :'email_domains' => :'email_domains',
    :'emails' => :'emails',
    :'emails_local_part' => :'emails_local_part',
    :'ethereum_addresses' => :'ethereum_addresses',
    :'generic_apis' => :'generic_apis',
    :'github_apis' => :'github_apis',
    :'google_apis' => :'google_apis',
    :'hashtags' => :'hashtags',
    :'i2p_urls' => :'i2p_urls',
    :'icq_urls' => :'icq_urls',
    :'ips' => :'ips',
    :'magnet_urls' => :'magnet_urls',
    :'md5s' => :'md5s',
    :'monero_addresses' => :'monero_addresses',
    :'onion_urls' => :'onion_urls',
    :'paste_urls' => :'paste_urls',
    :'phone_numbers' => :'phone_numbers',
    :'s3_buckets' => :'s3_buckets',
    :'sha1s' => :'sha1s',
    :'sha256s' => :'sha256s',
    :'sha512s' => :'sha512s',
    :'skype_urls' => :'skype_urls',
    :'slack_apis' => :'slack_apis',
    :'sqs_queues' => :'sqs_queues',
    :'telegram_urls' => :'telegram_urls',
    :'torrent_urls' => :'torrent_urls',
    :'urls' => :'urls',
    :'whatsapp_urls' => :'whatsapp_urls'
  }
end

.build_from_hash(attributes) ⇒ Object

Builds the object from hash

Parameters:

  • attributes (Hash)

    Model attributes in the form of hash

Returns:

  • (Object)

    Returns the model itself



505
506
507
# File 'lib/crimson-falcon/models/domain_ioc.rb', line 505

def self.build_from_hash(attributes)
  new.build_from_hash(attributes)
end

.openapi_nullableObject

List of attributes with nullable: true



197
198
199
200
# File 'lib/crimson-falcon/models/domain_ioc.rb', line 197

def self.openapi_nullable
  Set.new([
  ])
end

.openapi_typesObject

Attribute type mapping.



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
# File 'lib/crimson-falcon/models/domain_ioc.rb', line 155

def self.openapi_types
  {
    :'at_accounts' => :'Array<String>',
    :'aws_clis' => :'Array<String>',
    :'aws_ids' => :'Array<String>',
    :'aws_secrets' => :'Array<String>',
    :'bitcoin_address' => :'Array<String>',
    :'cves' => :'Array<String>',
    :'discord_urls' => :'Array<String>',
    :'domains' => :'Array<String>',
    :'email_domains' => :'Array<String>',
    :'emails' => :'Array<String>',
    :'emails_local_part' => :'Array<String>',
    :'ethereum_addresses' => :'Array<String>',
    :'generic_apis' => :'Array<String>',
    :'github_apis' => :'Array<String>',
    :'google_apis' => :'Array<String>',
    :'hashtags' => :'Array<String>',
    :'i2p_urls' => :'Array<String>',
    :'icq_urls' => :'Array<String>',
    :'ips' => :'Array<String>',
    :'magnet_urls' => :'Array<String>',
    :'md5s' => :'Array<String>',
    :'monero_addresses' => :'Array<String>',
    :'onion_urls' => :'Array<String>',
    :'paste_urls' => :'Array<String>',
    :'phone_numbers' => :'Array<String>',
    :'s3_buckets' => :'Array<String>',
    :'sha1s' => :'Array<String>',
    :'sha256s' => :'Array<String>',
    :'sha512s' => :'Array<String>',
    :'skype_urls' => :'Array<String>',
    :'slack_apis' => :'Array<String>',
    :'sqs_queues' => :'Array<String>',
    :'telegram_urls' => :'Array<String>',
    :'torrent_urls' => :'Array<String>',
    :'urls' => :'Array<String>',
    :'whatsapp_urls' => :'Array<String>'
  }
end

Instance Method Details

#==(o) ⇒ Object

Checks equality by comparing each attribute.

Parameters:

  • Object (Object)

    to be compared



449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
# File 'lib/crimson-falcon/models/domain_ioc.rb', line 449

def ==(o)
  return true if self.equal?(o)
  self.class == o.class &&
      at_accounts == o.at_accounts &&
      aws_clis == o.aws_clis &&
      aws_ids == o.aws_ids &&
      aws_secrets == o.aws_secrets &&
      bitcoin_address == o.bitcoin_address &&
      cves == o.cves &&
      discord_urls == o.discord_urls &&
      domains == o.domains &&
      email_domains == o.email_domains &&
      emails == o.emails &&
      emails_local_part == o.emails_local_part &&
      ethereum_addresses == o.ethereum_addresses &&
      generic_apis == o.generic_apis &&
      github_apis == o.github_apis &&
      google_apis == o.google_apis &&
      hashtags == o.hashtags &&
      i2p_urls == o.i2p_urls &&
      icq_urls == o.icq_urls &&
      ips == o.ips &&
      magnet_urls == o.magnet_urls &&
      md5s == o.md5s &&
      monero_addresses == o.monero_addresses &&
      onion_urls == o.onion_urls &&
      paste_urls == o.paste_urls &&
      phone_numbers == o.phone_numbers &&
      s3_buckets == o.s3_buckets &&
      sha1s == o.sha1s &&
      sha256s == o.sha256s &&
      sha512s == o.sha512s &&
      skype_urls == o.skype_urls &&
      slack_apis == o.slack_apis &&
      sqs_queues == o.sqs_queues &&
      telegram_urls == o.telegram_urls &&
      torrent_urls == o.torrent_urls &&
      urls == o.urls &&
      whatsapp_urls == o.whatsapp_urls
end

#_deserialize(type, value) ⇒ Object

Deserializes the data based on type

Parameters:

  • string

    type Data type

  • string

    value Value to be deserialized

Returns:

  • (Object)

    Deserialized data



536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
# File 'lib/crimson-falcon/models/domain_ioc.rb', line 536

def _deserialize(type, value)
  case type.to_sym
  when :Time
    Time.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
    # models (e.g. Pet) or oneOf
    klass = Falcon.const_get(type)
    klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.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

Parameters:

  • value (Object)

    Any valid value

Returns:

  • (Hash)

    Returns the value in the form of hash



607
608
609
610
611
612
613
614
615
616
617
618
619
# File 'lib/crimson-falcon/models/domain_ioc.rb', line 607

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

Parameters:

  • attributes (Hash)

    Model attributes in the form of hash

Returns:

  • (Object)

    Returns the model itself



512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
# File 'lib/crimson-falcon/models/domain_ioc.rb', line 512

def build_from_hash(attributes)
  return nil unless attributes.is_a?(Hash)
  attributes = attributes.transform_keys(&:to_sym)
  self.class.openapi_types.each_pair do |key, type|
    if attributes[self.class.attribute_map[key]].nil? && self.class.openapi_nullable.include?(key)
      self.send("#{key}=", nil)
    elsif type =~ /\AArray<(.*)>/i
      # check to ensure the input is an array given that 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
  end

  self
end

#eql?(o) ⇒ Boolean

Parameters:

  • Object (Object)

    to be compared

Returns:

  • (Boolean)

See Also:

  • `==` method


492
493
494
# File 'lib/crimson-falcon/models/domain_ioc.rb', line 492

def eql?(o)
  self == o
end

#hashInteger

Calculates hash code according to all attributes.

Returns:

  • (Integer)

    Hash code



498
499
500
# File 'lib/crimson-falcon/models/domain_ioc.rb', line 498

def hash
  [at_accounts, aws_clis, aws_ids, aws_secrets, bitcoin_address, cves, discord_urls, domains, email_domains, emails, emails_local_part, ethereum_addresses, generic_apis, github_apis, google_apis, hashtags, i2p_urls, icq_urls, ips, magnet_urls, md5s, monero_addresses, onion_urls, paste_urls, phone_numbers, s3_buckets, sha1s, sha256s, sha512s, skype_urls, slack_apis, sqs_queues, telegram_urls, torrent_urls, urls, whatsapp_urls].hash
end

#list_invalid_propertiesObject

Show invalid properties with the reasons. Usually used together with valid?

Returns:

  • Array for valid properties with the reasons



436
437
438
439
# File 'lib/crimson-falcon/models/domain_ioc.rb', line 436

def list_invalid_properties
  invalid_properties = Array.new
  invalid_properties
end

#to_bodyHash

to_body is an alias to to_hash (backward compatibility)

Returns:

  • (Hash)

    Returns the object in the form of hash



583
584
585
# File 'lib/crimson-falcon/models/domain_ioc.rb', line 583

def to_body
  to_hash
end

#to_hashHash

Returns the object in the form of hash

Returns:

  • (Hash)

    Returns the object in the form of hash



589
590
591
592
593
594
595
596
597
598
599
600
601
# File 'lib/crimson-falcon/models/domain_ioc.rb', line 589

def to_hash
  hash = {}
  self.class.attribute_map.each_pair do |attr, param|
    value = self.send(attr)
    if value.nil?
      is_nullable = self.class.openapi_nullable.include?(attr)
      next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
    end

    hash[param] = _to_hash(value)
  end
  hash
end

#to_sString

Returns the string representation of the object

Returns:

  • (String)

    String presentation of the object



577
578
579
# File 'lib/crimson-falcon/models/domain_ioc.rb', line 577

def to_s
  to_hash.to_s
end

#valid?Boolean

Check to see if the all the properties in the model are valid

Returns:

  • (Boolean)

    true if the model is valid



443
444
445
# File 'lib/crimson-falcon/models/domain_ioc.rb', line 443

def valid?
  true
end