Class: Censys::Search::Metadata

Inherits:
Object
  • Object
show all
Defined in:
lib/censys/search/metadata.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(metadata) ⇒ Metadata

Initializes the search metadata.

Parameters:

  • metadata (Hash{String => Object})


26
27
28
29
30
31
32
# File 'lib/censys/search/metadata.rb', line 26

def initialize()
  @count = ['count']
  @query = ['query']
  @backend_time = ['backend_time']
  @page  = ['page']
  @pages = ['pages']
end

Instance Attribute Details

#backend_timeInteger (readonly)

Returns:

  • (Integer)


13
14
15
# File 'lib/censys/search/metadata.rb', line 13

def backend_time
  @backend_time
end

#countInteger (readonly)

Returns:

  • (Integer)


7
8
9
# File 'lib/censys/search/metadata.rb', line 7

def count
  @count
end

#pageInteger (readonly)

Returns:

  • (Integer)


16
17
18
# File 'lib/censys/search/metadata.rb', line 16

def page
  @page
end

#pagesInteger (readonly)

Returns:

  • (Integer)


19
20
21
# File 'lib/censys/search/metadata.rb', line 19

def pages
  @pages
end

#queryString (readonly)

Returns:

  • (String)


10
11
12
# File 'lib/censys/search/metadata.rb', line 10

def query
  @query
end