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.
32 33 34 35 36 37 38 39 40 41 |
# File 'lib/censys/autonomous_system.rb', line 32 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)
22 23 24 |
# File 'lib/censys/autonomous_system.rb', line 22 def asn @asn end |
#country_code ⇒ String (readonly)
13 14 15 |
# File 'lib/censys/autonomous_system.rb', line 13 def country_code @country_code end |
#description ⇒ String (readonly)
25 26 27 |
# File 'lib/censys/autonomous_system.rb', line 25 def description @description end |
#name ⇒ String (readonly)
4 5 6 |
# File 'lib/censys/autonomous_system.rb', line 4 def name @name end |
#organization ⇒ String (readonly)
19 20 21 |
# File 'lib/censys/autonomous_system.rb', line 19 def organization @organization end |
#path ⇒ Array<Integer> (readonly)
16 17 18 |
# File 'lib/censys/autonomous_system.rb', line 16 def path @path end |
#rir ⇒ String (readonly)
7 8 9 |
# File 'lib/censys/autonomous_system.rb', line 7 def rir @rir end |
#routed_prefix ⇒ String (readonly)
10 11 12 |
# File 'lib/censys/autonomous_system.rb', line 10 def routed_prefix @routed_prefix end |