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.



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

Instance Attribute Details

#descriptionObject (readonly)

Returns the value of attribute description.



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

def description
  @description
end

#destinationObject (readonly)

Returns the value of attribute destination.



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

def destination
  @destination
end

#idObject (readonly)

Returns the value of attribute id.



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

def id
  @id
end

#nameObject (readonly)

Returns the value of attribute name.



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

def name
  @name
end

#portObject (readonly)

Returns the value of attribute port.



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

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.



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

def results
  @results
end

#subprotocolObject (readonly)

Returns the value of attribute subprotocol.



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

def subprotocol
  @subprotocol
end