Class: Treaty::Response::Entity

Inherits:
Object
  • Object
show all
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.

Method Summary

Methods included from Attribute::DSL

included