Class: Censys::Data::Series
- Inherits:
-
Object
- Object
- Censys::Data::Series
- Defined in:
- lib/censys/data/series.rb
Instance Attribute Summary collapse
-
#description ⇒ Object
readonly
Returns the value of attribute description.
-
#destination ⇒ Object
readonly
Returns the value of attribute destination.
-
#id ⇒ Object
readonly
Returns the value of attribute id.
-
#name ⇒ Object
readonly
Returns the value of attribute name.
-
#port ⇒ Object
readonly
Returns the value of attribute port.
-
#protocol ⇒ Object
readonly
Returns the value of attribute protocol.
-
#results ⇒ Object
readonly
Returns the value of attribute results.
-
#subprotocol ⇒ Object
readonly
Returns the value of attribute subprotocol.
Instance Method Summary collapse
-
#initialize(attributes) ⇒ Series
constructor
A new instance of Series.
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
#description ⇒ Object (readonly)
Returns the value of attribute description.
12 13 14 |
# File 'lib/censys/data/series.rb', line 12 def description @description end |
#destination ⇒ Object (readonly)
Returns the value of attribute destination.
10 11 12 |
# File 'lib/censys/data/series.rb', line 10 def destination @destination end |
#id ⇒ Object (readonly)
Returns the value of attribute id.
6 7 8 |
# File 'lib/censys/data/series.rb', line 6 def id @id end |
#name ⇒ Object (readonly)
Returns the value of attribute name.
11 12 13 |
# File 'lib/censys/data/series.rb', line 11 def name @name end |
#port ⇒ Object (readonly)
Returns the value of attribute port.
7 8 9 |
# File 'lib/censys/data/series.rb', line 7 def port @port end |
#protocol ⇒ Object (readonly)
Returns the value of attribute protocol.
8 9 10 |
# File 'lib/censys/data/series.rb', line 8 def protocol @protocol end |
#results ⇒ Object (readonly)
Returns the value of attribute results.
13 14 15 |
# File 'lib/censys/data/series.rb', line 13 def results @results end |
#subprotocol ⇒ Object (readonly)
Returns the value of attribute subprotocol.
9 10 11 |
# File 'lib/censys/data/series.rb', line 9 def subprotocol @subprotocol end |