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_timeObject

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

#headersObject

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

#keyObject

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

#offsetObject

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

#partitionObject

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_keyObject

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

#topicObject

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

#valueObject

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

#bytesizeObject



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

def bytesize
  key.to_s.bytesize + value.to_s.bytesize
end