Class Fog::Rackspace::Queues::Mock::MockMessage
In: lib/fog/rackspace/queues.rb
Parent: Object

A single message posted to an in-memory MockQueue.

Methods

age   claimed?   expired?   extend_life   href   new   to_h  

Attributes

claim  [RW] 
created  [RW] 
data  [RW] 
id  [RW] 
producer_id  [RW] 
queue  [RW] 
ttl  [RW] 

Public Class methods

Public Instance methods

Determine how long ago this message was created, in seconds.

@return [Integer]

Return true if this message has been claimed.

@return [Boolean]

Determine if this message has lived longer than its designated ttl.

@return [Boolean]

Extend the {ttl} of this message to include the lifetime of the claim it belongs to, plus the claim‘s grace period.

Generate a URI segment that identifies this message.

@return [String]

Convert this message to a GET payload.

@return [Hash]

[Validate]