Class: Censys::Search::Metadata
- Inherits:
-
Object
- Object
- Censys::Search::Metadata
- Defined in:
- lib/censys/search/metadata.rb
Instance Attribute Summary collapse
- #backend_time ⇒ Integer readonly
- #count ⇒ Integer readonly
- #page ⇒ Integer readonly
- #pages ⇒ Integer readonly
- #query ⇒ String readonly
Instance Method Summary collapse
-
#initialize(metadata) ⇒ Metadata
constructor
Initializes the search metadata.
Constructor Details
#initialize(metadata) ⇒ Metadata
Initializes the search metadata.
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_time ⇒ Integer (readonly)
13 14 15 |
# File 'lib/censys/search/metadata.rb', line 13 def backend_time @backend_time end |
#count ⇒ Integer (readonly)
7 8 9 |
# File 'lib/censys/search/metadata.rb', line 7 def count @count end |
#page ⇒ Integer (readonly)
16 17 18 |
# File 'lib/censys/search/metadata.rb', line 16 def page @page end |
#pages ⇒ Integer (readonly)
19 20 21 |
# File 'lib/censys/search/metadata.rb', line 19 def pages @pages end |
#query ⇒ String (readonly)
10 11 12 |
# File 'lib/censys/search/metadata.rb', line 10 def query @query end |