Class: Censys::Data::Series

Inherits:
Object
  • Object
show all
Defined in:
lib/censys/data/series.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(attributes) ⇒ Series

Returns a new instance of Series.



20
21
22
23
24
25
26
27
28
29
# File 'lib/censys/data/series.rb', line 20

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

Instance Attribute Details

#descriptionObject (readonly)

Returns the value of attribute description.



16
17
18
# File 'lib/censys/data/series.rb', line 16

def description
  @description
end

#destinationObject (readonly)

Returns the value of attribute destination.



12
13
14
# File 'lib/censys/data/series.rb', line 12

def destination
  @destination
end

#idObject (readonly)

Returns the value of attribute id.



4
5
6
# File 'lib/censys/data/series.rb', line 4

def id
  @id
end

#nameObject (readonly)

Returns the value of attribute name.



14
15
16
# File 'lib/censys/data/series.rb', line 14

def name
  @name
end

#portObject (readonly)

Returns the value of attribute port.



6
7
8
# File 'lib/censys/data/series.rb', line 6

def port
  @port
end

#protocolObject (readonly)

Returns the value of attribute protocol.



8
9
10
# File 'lib/censys/data/series.rb', line 8

def protocol
  @protocol
end

#resultsObject (readonly)

Returns the value of attribute results.



18
19
20
# File 'lib/censys/data/series.rb', line 18

def results
  @results
end

#subprotocolObject (readonly)

Returns the value of attribute subprotocol.



10
11
12
# File 'lib/censys/data/series.rb', line 10

def subprotocol
  @subprotocol
end