Class: Censys::Data::Result
- Inherits:
-
Object
- Object
- Censys::Data::Result
- Defined in:
- lib/censys/data/result.rb
Instance Attribute Summary collapse
-
#files ⇒ Object
readonly
Returns the value of attribute files.
-
#id ⇒ Object
readonly
Returns the value of attribute id.
-
#timestamp ⇒ Object
readonly
Returns the value of attribute timestamp.
Instance Method Summary collapse
-
#initialize(attributes) ⇒ Result
constructor
A new instance of Result.
Constructor Details
#initialize(attributes) ⇒ Result
Returns a new instance of Result.
12 13 14 15 16 |
# File 'lib/censys/data/result.rb', line 12 def initialize(attributes) @id = attributes["id"] @files = attributes["files"] @timestamp = Time.parse(attributes["timestamp"]) end |
Instance Attribute Details
#files ⇒ Object (readonly)
Returns the value of attribute files.
8 9 10 |
# File 'lib/censys/data/result.rb', line 8 def files @files end |
#id ⇒ Object (readonly)
Returns the value of attribute id.
6 7 8 |
# File 'lib/censys/data/result.rb', line 6 def id @id end |
#timestamp ⇒ Object (readonly)
Returns the value of attribute timestamp.
10 11 12 |
# File 'lib/censys/data/result.rb', line 10 def @timestamp end |