Class: DeliveryBoy::Fake::FakeMessage
- Inherits:
-
Struct
- Object
- Struct
- DeliveryBoy::Fake::FakeMessage
- Defined in:
- lib/delivery_boy/fake.rb
Instance Attribute Summary collapse
-
#create_time ⇒ Object
Returns the value of attribute create_time.
-
#headers ⇒ Object
Returns the value of attribute headers.
-
#key ⇒ Object
Returns the value of attribute key.
-
#offset ⇒ Object
Returns the value of attribute offset.
-
#partition ⇒ Object
Returns the value of attribute partition.
-
#partition_key ⇒ Object
Returns the value of attribute partition_key.
-
#topic ⇒ Object
Returns the value of attribute topic.
-
#value ⇒ Object
Returns the value of attribute value.
Instance Method Summary collapse
Instance Attribute Details
#create_time ⇒ Object
Returns the value of attribute create_time
5 6 7 |
# File 'lib/delivery_boy/fake.rb', line 5 def create_time @create_time end |
#headers ⇒ Object
Returns the value of attribute headers
5 6 7 |
# File 'lib/delivery_boy/fake.rb', line 5 def headers @headers end |
#key ⇒ Object
Returns the value of attribute key
5 6 7 |
# File 'lib/delivery_boy/fake.rb', line 5 def key @key end |
#offset ⇒ Object
Returns the value of attribute offset
5 6 7 |
# File 'lib/delivery_boy/fake.rb', line 5 def offset @offset end |
#partition ⇒ Object
Returns the value of attribute partition
5 6 7 |
# File 'lib/delivery_boy/fake.rb', line 5 def partition @partition end |
#partition_key ⇒ Object
Returns the value of attribute partition_key
5 6 7 |
# File 'lib/delivery_boy/fake.rb', line 5 def partition_key @partition_key end |
#topic ⇒ Object
Returns the value of attribute topic
5 6 7 |
# File 'lib/delivery_boy/fake.rb', line 5 def topic @topic end |
#value ⇒ Object
Returns the value of attribute value
5 6 7 |
# File 'lib/delivery_boy/fake.rb', line 5 def value @value end |
Instance Method Details
#bytesize ⇒ Object
6 7 8 |
# File 'lib/delivery_boy/fake.rb', line 6 def bytesize key.to_s.bytesize + value.to_s.bytesize end |