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.
30 31 32 33 34 35 36 37 38 |
# File 'lib/censys/report/metadata.rb', line 30 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)
8 9 10 |
# File 'lib/censys/report/metadata.rb', line 8 def backend_time @backend_time end |
#buckets ⇒ Fixnum (readonly)
17 18 19 |
# File 'lib/censys/report/metadata.rb', line 17 def buckets @buckets end |
#count ⇒ Fixnum (readonly)
5 6 7 |
# File 'lib/censys/report/metadata.rb', line 5 def count @count end |
#error_bound ⇒ Fixnum (readonly)
20 21 22 |
# File 'lib/censys/report/metadata.rb', line 20 def error_bound @error_bound end |
#non_null_count ⇒ Fixnum (readonly)
11 12 13 |
# File 'lib/censys/report/metadata.rb', line 11 def non_null_count @non_null_count end |
#other_result_count ⇒ Fixnum (readonly)
14 15 16 |
# File 'lib/censys/report/metadata.rb', line 14 def other_result_count @other_result_count end |
#query ⇒ String (readonly)
23 24 25 |
# File 'lib/censys/report/metadata.rb', line 23 def query @query end |