Class: Censys::AutonomousSystem
- Inherits:
-
Object
- Object
- Censys::AutonomousSystem
- Defined in:
- lib/censys/autonomous_system.rb
Instance Attribute Summary collapse
- #asn ⇒ Integer readonly
- #country_code ⇒ String readonly
- #description ⇒ String readonly
- #name ⇒ String readonly
- #organization ⇒ String readonly
- #path ⇒ Array<Integer> readonly
- #rir ⇒ String readonly
- #routed_prefix ⇒ String readonly
Instance Method Summary collapse
-
#initialize(attributes) ⇒ AutonomousSystem
constructor
Initializes the Autonomous System (AS) information.
Constructor Details
#initialize(attributes) ⇒ AutonomousSystem
Initializes the Autonomous System (AS) information.
34 35 36 37 38 39 40 41 42 43 |
# File 'lib/censys/autonomous_system.rb', line 34 def initialize(attributes) @name = attributes['name'] @rir = attributes['rir'] @routed_prefix = attributes['routed_prefix'] @country_code = attributes['country_code'] @path = attributes['path'] @organization = attributes['organization'] @asn = attributes['asn'] @description = attributes['description'] end |
Instance Attribute Details
#asn ⇒ Integer (readonly)
24 25 26 |
# File 'lib/censys/autonomous_system.rb', line 24 def asn @asn end |
#country_code ⇒ String (readonly)
15 16 17 |
# File 'lib/censys/autonomous_system.rb', line 15 def country_code @country_code end |
#description ⇒ String (readonly)
27 28 29 |
# File 'lib/censys/autonomous_system.rb', line 27 def description @description end |
#name ⇒ String (readonly)
6 7 8 |
# File 'lib/censys/autonomous_system.rb', line 6 def name @name end |
#organization ⇒ String (readonly)
21 22 23 |
# File 'lib/censys/autonomous_system.rb', line 21 def organization @organization end |
#path ⇒ Array<Integer> (readonly)
18 19 20 |
# File 'lib/censys/autonomous_system.rb', line 18 def path @path end |
#rir ⇒ String (readonly)
9 10 11 |
# File 'lib/censys/autonomous_system.rb', line 9 def rir @rir end |
#routed_prefix ⇒ String (readonly)
12 13 14 |
# File 'lib/censys/autonomous_system.rb', line 12 def routed_prefix @routed_prefix end |