Class: DeliveryBoy::Fake::FakeMessage

Inherits:
Struct
  • Object
show all
Defined in:
lib/delivery_boy/fake.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#create_time ⇒ Object

Returns the value of attribute create_time

Returns:

  • (Object) —

    the current value of 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

Returns:

  • (Object) —

    the current value of headers



5
6
7
# File 'lib/delivery_boy/fake.rb', line 5

def headers
  @headers
end

#key ⇒ Object

Returns the value of attribute key

Returns:

  • (Object) —

    the current value of key



5
6
7
# File 'lib/delivery_boy/fake.rb', line 5

def key
  @key
end

#offset ⇒ Object

Returns the value of attribute offset

Returns:

  • (Object) —

    the current value of offset



5
6
7
# File 'lib/delivery_boy/fake.rb', line 5

def offset
  @offset
end

#partition ⇒ Object

Returns the value of attribute partition

Returns:

  • (Object) —

    the current value of 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

Returns:

  • (Object) —

    the current value of 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

Returns:

  • (Object) —

    the current value of topic



5
6
7
# File 'lib/delivery_boy/fake.rb', line 5

def topic
  @topic
end

#value ⇒ Object

Returns the value of attribute value

Returns:

  • (Object) —

    the current value of 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