Class: DeviceAtlas::Carrier::BucketHandler

Inherits:
Object
  • Object
show all
Includes:
Zlib
Defined in:
lib/deviceatlas/carrier/bucket_handler.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeBucketHandler

Returns a new instance of BucketHandler.

Instance Attribute Details

#property_data_typesObject (readonly)

Returns the value of attribute property_data_types.

#property_namesObject (readonly)

Returns the value of attribute property_names.

#tree_v4_leftsObject (readonly)

Returns the value of attribute tree_v4_lefts.

#tree_v4_propertiesObject (readonly)

Returns the value of attribute tree_v4_properties.

#tree_v4_rightsObject (readonly)

Returns the value of attribute tree_v4_rights.

#tree_v6_leftsObject (readonly)

Returns the value of attribute tree_v6_lefts.

#tree_v6_propertiesObject (readonly)

Returns the value of attribute tree_v6_properties.

#tree_v6_rightsObject (readonly)

Returns the value of attribute tree_v6_rights.

Instance Method Details

#needs_bucketsObject

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.