Class: Censys::Report::Metadata
- Inherits:
-
Object
- Object
- Censys::Report::Metadata
- Defined in:
- lib/censys/report/metadata.rb
Instance Attribute Summary collapse
- #backend_time ⇒ Fixnum readonly
- #buckets ⇒ Fixnum readonly
- #count ⇒ Fixnum readonly
- #error_bound ⇒ Fixnum readonly
- #non_null_count ⇒ Fixnum readonly
- #other_result_count ⇒ Fixnum readonly
- #query ⇒ String readonly
Instance Method Summary collapse
-
#initialize(attributes) ⇒ Metadata
constructor
Initializes the report metadata.
Constructor Details
#initialize(attributes) ⇒ Metadata
Initializes the report metadata.
32 33 34 35 36 37 38 39 40 |
# File 'lib/censys/report/metadata.rb', line 32 def initialize(attributes) @count = attributes['count'] @backend_time = attributes['backend_time'] @non_null_count = attributes['nonnull_count'] @other_result_count = attributes['other_result_count'] @buckets = attributes['buckets'] @error_bound = attributes['error_bound'] @query = attributes['query'] end |
Instance Attribute Details
#backend_time ⇒ Fixnum (readonly)
10 11 12 |
# File 'lib/censys/report/metadata.rb', line 10 def backend_time @backend_time end |
#buckets ⇒ Fixnum (readonly)
19 20 21 |
# File 'lib/censys/report/metadata.rb', line 19 def buckets @buckets end |
#count ⇒ Fixnum (readonly)
7 8 9 |
# File 'lib/censys/report/metadata.rb', line 7 def count @count end |
#error_bound ⇒ Fixnum (readonly)
22 23 24 |
# File 'lib/censys/report/metadata.rb', line 22 def error_bound @error_bound end |
#non_null_count ⇒ Fixnum (readonly)
13 14 15 |
# File 'lib/censys/report/metadata.rb', line 13 def non_null_count @non_null_count end |
#other_result_count ⇒ Fixnum (readonly)
16 17 18 |
# File 'lib/censys/report/metadata.rb', line 16 def other_result_count @other_result_count end |
#query ⇒ String (readonly)
25 26 27 |
# File 'lib/censys/report/metadata.rb', line 25 def query @query end |