Class: Censys::Data::Result

Inherits:
Object
  • Object
show all
Defined in:
lib/censys/data/result.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#filesObject (readonly)

Returns the value of attribute files.



9
10
11
# File 'lib/censys/data/result.rb', line 9

def files
  @files
end

#idObject (readonly)

Returns the value of attribute id.



8
9
10
# File 'lib/censys/data/result.rb', line 8

def id
  @id
end

#timestampObject (readonly)

Returns the value of attribute timestamp.



10
11
12
# File 'lib/censys/data/result.rb', line 10

def timestamp
  @timestamp
end