Class: Treaty::Response::Entity
- Inherits:
-
Object
- Object
- Treaty::Response::Entity
- Includes:
- Attribute::DSL
- Defined in:
- lib/treaty/response/entity.rb
Overview
Entity class for response definitions. Attributes are optional by default.
This class is used internally when defining response blocks. When you write a response block, Treaty creates an anonymous class based on Response::Entity.