Method: Censys::Data::Series#initialize

Defined in:
lib/censys/data/series.rb

#initialize(attributes) ⇒ Series

Returns a new instance of Series.



15
16
17
18
19
20
21
22
23
24
# File 'lib/censys/data/series.rb', line 15

def initialize(attributes)
  @id = attributes["id"]
  @port = attributes["port"]
  @protocol = attributes["protocol"]
  @subprotocol = attributes["subprotocol"]
  @destination = attributes["destination"]
  @name = attributes["name"]
  @description = attributes["description"]
  @results = attributes["results"]
end