Class: DeviceAtlas::Carrier::BucketHandler
- Inherits:
-
Object
- Object
- DeviceAtlas::Carrier::BucketHandler
- Includes:
- Zlib
- Defined in:
- lib/deviceatlas/carrier/bucket_handler.rb
Instance Attribute Summary collapse
-
#property_data_types ⇒ Object
readonly
Returns the value of attribute property_data_types.
-
#property_names ⇒ Object
readonly
Returns the value of attribute property_names.
-
#tree_v4_lefts ⇒ Object
readonly
Returns the value of attribute tree_v4_lefts.
-
#tree_v4_properties ⇒ Object
readonly
Returns the value of attribute tree_v4_properties.
-
#tree_v4_rights ⇒ Object
readonly
Returns the value of attribute tree_v4_rights.
-
#tree_v6_lefts ⇒ Object
readonly
Returns the value of attribute tree_v6_lefts.
-
#tree_v6_properties ⇒ Object
readonly
Returns the value of attribute tree_v6_properties.
-
#tree_v6_rights ⇒ Object
readonly
Returns the value of attribute tree_v6_rights.
Instance Method Summary collapse
-
#initialize ⇒ BucketHandler
constructor
A new instance of BucketHandler.
-
#needs_buckets ⇒ Object
Checks if all the necessary buckets have been supplied and processed.
-
#process_bucket(bucket_id, file_crc32, bucket_data) ⇒ Object
Process a bucket identified by “bucketId”.
Constructor Details
#initialize ⇒ BucketHandler
Returns a new instance of BucketHandler.
Instance Attribute Details
#property_data_types ⇒ Object (readonly)
Returns the value of attribute property_data_types.
#property_names ⇒ Object (readonly)
Returns the value of attribute property_names.
#tree_v4_lefts ⇒ Object (readonly)
Returns the value of attribute tree_v4_lefts.
#tree_v4_properties ⇒ Object (readonly)
Returns the value of attribute tree_v4_properties.
#tree_v4_rights ⇒ Object (readonly)
Returns the value of attribute tree_v4_rights.
#tree_v6_lefts ⇒ Object (readonly)
Returns the value of attribute tree_v6_lefts.
#tree_v6_properties ⇒ Object (readonly)
Returns the value of attribute tree_v6_properties.
#tree_v6_rights ⇒ Object (readonly)
Returns the value of attribute tree_v6_rights.
Instance Method Details
#needs_buckets ⇒ Object
Checks if all the necessary buckets have been supplied and processed.
return
-
TRUE if all buckets complete, FALSE otherwise
#process_bucket(bucket_id, file_crc32, bucket_data) ⇒ Object
Process a bucket identified by “bucketId”. The bucket CRC-32 hash is verified before parsing the bucket data.