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.
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
#description ⇒ Object (readonly)
Returns the value of attribute description.
16 17 18 |
# File 'lib/censys/data/series.rb', line 16 def description @description end |
#destination ⇒ Object (readonly)
Returns the value of attribute destination.
12 13 14 |
# File 'lib/censys/data/series.rb', line 12 def destination @destination end |
#id ⇒ Object (readonly)
Returns the value of attribute id.
4 5 6 |
# File 'lib/censys/data/series.rb', line 4 def id @id end |
#name ⇒ Object (readonly)
Returns the value of attribute name.
14 15 16 |
# File 'lib/censys/data/series.rb', line 14 def name @name end |
#port ⇒ Object (readonly)
Returns the value of attribute port.
6 7 8 |
# File 'lib/censys/data/series.rb', line 6 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.
18 19 20 |
# File 'lib/censys/data/series.rb', line 18 def results @results end |
#subprotocol ⇒ Object (readonly)
Returns the value of attribute subprotocol.
10 11 12 |
# File 'lib/censys/data/series.rb', line 10 def subprotocol @subprotocol end |