Class: EventStoreClient::InMemory::Response

Inherits:
Struct
  • Object
show all
Defined in:
lib/event_store_client/adapters/in_memory.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#bodyObject

Returns the value of attribute body

Returns:

  • (Object)

    the current value of body



7
8
9
# File 'lib/event_store_client/adapters/in_memory.rb', line 7

def body
  @body
end

#statusObject

Returns the value of attribute status

Returns:

  • (Object)

    the current value of status



7
8
9
# File 'lib/event_store_client/adapters/in_memory.rb', line 7

def status
  @status
end

Instance Method Details

#success?Boolean

Returns:

  • (Boolean)


8
9
10
# File 'lib/event_store_client/adapters/in_memory.rb', line 8

def success?
  status == 200
end