gophish-ruby 1.1.0 → 1.1.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/lib/gophish/base.rb +1 -1
- data/lib/gophish/campaign.rb +26 -0
- data/lib/gophish/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: fd6fcb4143f46dfe08b1a34bfdf23f617069080ca7ad3f8eefe8caa94af5f620
|
4
|
+
data.tar.gz: 4bcf7c523526d43b457ff81e3f51667bca96ccb648b21e66f0c512f2061eb517
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: '0982ddde22b250a73fde2aa1c0c324226b5dde8db7e5ed1bcb4a903dbef19b4d9c00693266747a0f438e0599750b87b215a535673dc6bd084241c5862d143814'
|
7
|
+
data.tar.gz: 022ee40a90b95e9bc7d4470f0dc6121d95dd918312343408c24067b4c5fbde0cf9cb9dd884164e3ed86a6150a5a86d093d306c48ac7775c9f0874df89deb8ef2
|
data/lib/gophish/base.rb
CHANGED
@@ -188,7 +188,7 @@ module Gophish
|
|
188
188
|
def to_s
|
189
189
|
attributes_hash = {}
|
190
190
|
self.class.attribute_names.each do |attr_name|
|
191
|
-
value = send
|
191
|
+
value = send attr_name
|
192
192
|
attributes_hash[attr_name.to_sym] = value unless value.nil?
|
193
193
|
end
|
194
194
|
attributes_hash.to_s
|
data/lib/gophish/campaign.rb
CHANGED
@@ -303,6 +303,19 @@ module Gophish
|
|
303
303
|
def submitted_data?
|
304
304
|
status == 'Submitted Data'
|
305
305
|
end
|
306
|
+
|
307
|
+
def to_s
|
308
|
+
attributes_hash = {}
|
309
|
+
self.class.attribute_names.each do |attr_name|
|
310
|
+
value = send attr_name
|
311
|
+
attributes_hash[attr_name.to_sym] = value unless value.nil?
|
312
|
+
end
|
313
|
+
attributes_hash.to_s
|
314
|
+
end
|
315
|
+
|
316
|
+
def inspect
|
317
|
+
to_s
|
318
|
+
end
|
306
319
|
end
|
307
320
|
|
308
321
|
class Event
|
@@ -325,6 +338,19 @@ module Gophish
|
|
325
338
|
rescue JSON::ParserError
|
326
339
|
{}
|
327
340
|
end
|
341
|
+
|
342
|
+
def to_s
|
343
|
+
attributes_hash = {}
|
344
|
+
self.class.attribute_names.each do |attr_name|
|
345
|
+
value = send attr_name
|
346
|
+
attributes_hash[attr_name.to_sym] = value unless value.nil?
|
347
|
+
end
|
348
|
+
attributes_hash.to_s
|
349
|
+
end
|
350
|
+
|
351
|
+
def inspect
|
352
|
+
to_s
|
353
|
+
end
|
328
354
|
end
|
329
355
|
end
|
330
356
|
end
|
data/lib/gophish/version.rb
CHANGED