Class: Threatinator::Model::Observables::FqdnCollection

Inherits:
Collection
  • Object
show all
Defined in:
lib/threatinator/model/observables/fqdn_collection.rb

Instance Method Summary collapse

Methods inherited from Collection

#<<, #==, #collect!, #count, #delete, #delete?, #each, #empty?, #include?, #initialize, #list, #to_ary

Constructor Details

This class inherits a constructor from Threatinator::Model::Collection

Instance Method Details

#valid_member?(v) ⇒ Boolean

Returns:

  • (Boolean)


8
9
10
11
# File 'lib/threatinator/model/observables/fqdn_collection.rb', line 8

def valid_member?(v)
  #v.is_a?(::String)
  ::DomainNameValidator.new.validate(v.to_s)
end