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})


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

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

Instance Attribute Details

#backend_timeInteger (readonly)

Returns:

  • (Integer)


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

def backend_time
  @backend_time
end

#countInteger (readonly)

Returns:

  • (Integer)


5
6
7
# File 'lib/censys/search/metadata.rb', line 5

def count
  @count
end

#pageInteger (readonly)

Returns:

  • (Integer)


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

def page
  @page
end

#pagesInteger (readonly)

Returns:

  • (Integer)


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

def pages
  @pages
end

#queryString (readonly)

Returns:

  • (String)


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

def query
  @query
end