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.
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_time ⇒ Integer (readonly)
11 12 13 |
# File 'lib/censys/search/metadata.rb', line 11 def backend_time @backend_time end |
#count ⇒ Integer (readonly)
5 6 7 |
# File 'lib/censys/search/metadata.rb', line 5 def count @count end |
#page ⇒ Integer (readonly)
14 15 16 |
# File 'lib/censys/search/metadata.rb', line 14 def page @page end |
#pages ⇒ Integer (readonly)
17 18 19 |
# File 'lib/censys/search/metadata.rb', line 17 def pages @pages end |
#query ⇒ String (readonly)
8 9 10 |
# File 'lib/censys/search/metadata.rb', line 8 def query @query end |