Class: Threatinator::Model::Observables::UrlCollection

Inherits:
Collection
  • Object
show all
Defined in:
lib/threatinator/model/observables/url_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/url_collection.rb', line 8

def valid_member?(v)
  v.is_a?(::Addressable::URI) &&
    v.absolute?
end